remove document example for now
This commit is contained in:
parent
55aa4aaf0f
commit
700c719422
3 changed files with 0 additions and 29 deletions
|
@ -1,15 +0,0 @@
|
||||||
# LangChain Web Summarization
|
|
||||||
|
|
||||||
This example summarizes a website
|
|
||||||
|
|
||||||
## Setup
|
|
||||||
|
|
||||||
```
|
|
||||||
pip install -r requirements.txt
|
|
||||||
```
|
|
||||||
|
|
||||||
## Run
|
|
||||||
|
|
||||||
```
|
|
||||||
python main.py
|
|
||||||
```
|
|
|
@ -1,12 +0,0 @@
|
||||||
from langchain.llms import Ollama
|
|
||||||
from langchain.document_loaders import WebBaseLoader
|
|
||||||
from langchain.chains.summarize import load_summarize_chain
|
|
||||||
|
|
||||||
loader = WebBaseLoader("https://ollama.ai/blog/run-llama2-uncensored-locally")
|
|
||||||
docs = loader.load()
|
|
||||||
|
|
||||||
llm = Ollama(model="llama2")
|
|
||||||
chain = load_summarize_chain(llm, chain_type="stuff")
|
|
||||||
|
|
||||||
result = chain.run(docs)
|
|
||||||
print(result)
|
|
|
@ -1,2 +0,0 @@
|
||||||
langchain==0.0.259
|
|
||||||
bs4==0.0.1
|
|
Loading…
Reference in a new issue