Skip to content

Instantly share code, notes, and snippets.

View stammi922's full-sized avatar

Jonas Stamm stammi922

View GitHub Profile
@jvelezmagic
jvelezmagic / main.py
Last active September 10, 2024 19:40
QA Chatbot streaming with source documents example using FastAPI, LangChain Expression Language, OpenAI, and Chroma.
"""QA Chatbot streaming using FastAPI, LangChain Expression Language , OpenAI, and Chroma.
Features
--------
- Persistent Chat Memory:
Stores chat history in a local file.
- Persistent Vector Store:
Stores document embeddings in a local vector store.
- Standalone Question Generation:
Rephrases follow-up questions to standalone questions in their original language.