remove document example for now

This commit is contained in:
Jeffrey Morgan 2023-08-10 20:25:01 -07:00
parent 55aa4aaf0f
commit 700c719422
3 changed files with 0 additions and 29 deletions

View file

@ -1,15 +0,0 @@
# LangChain Web Summarization
This example summarizes a website
## Setup
```
pip install -r requirements.txt
```
## Run
```
python main.py
```

View file

@ -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)

View file

@ -1,2 +0,0 @@
langchain==0.0.259
bs4==0.0.1