This app helps summarise large text files using RecursiveTextSplit method under langchain. You also can access the analytics of the LLM using langchain's API.
- Clone the repository.
- Install the required dependencies by running:
pip install -r requirements.txt
- Set up the necessary environment variables by creating a
.env
file with the following keys:LANGCHAIN_TRACING_V2
astrue
LANGCHAIN_API_KEY
OPENAI_API_KEY
- Run the Streamlit app by executing:
or if you have ollama llama3 installed locally then you can use
streamlit run app.py
streamlit run app_ollama.py
- Paste the content you want to summarize in the text area.
- Click the "Summarize" button to generate a summary
- Run app.py file under api folder using
fastapi dev app.py
- Check the API payload structure on
http://127.0.0.1:8000/docs