diff --git a/examples/langchain-document/README.md b/examples/langchain-document/README.md deleted file mode 100644 index cd3b3491..00000000 --- a/examples/langchain-document/README.md +++ /dev/null @@ -1,15 +0,0 @@ -# LangChain Web Summarization - -This example summarizes a website - -## Setup - -``` -pip install -r requirements.txt -``` - -## Run - -``` -python main.py -``` diff --git a/examples/langchain-document/main.py b/examples/langchain-document/main.py deleted file mode 100644 index 2bb25d75..00000000 --- a/examples/langchain-document/main.py +++ /dev/null @@ -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) diff --git a/examples/langchain-document/requirements.txt b/examples/langchain-document/requirements.txt deleted file mode 100644 index 09f75597..00000000 --- a/examples/langchain-document/requirements.txt +++ /dev/null @@ -1,2 +0,0 @@ -langchain==0.0.259 -bs4==0.0.1 \ No newline at end of file