This repo is about how to create a documentation chatbot
python3 -m venv venv
source venv/bin/activatepip install -r requirements.txt - Create a
.envfile in the project root directory
GEMINI_API_KEY=api_key_here- In
docs_db.py, you need to update the path to your local Markdown files.
- Run docs_db.py to create the FAISS vector index:
python docs_db.py - You should see the message "FAISS vectorstore saved".
streamlit run app.py Notes
-
Vector Embedding: [HuggingFaceEmbeddings] (https://huggingface.co/docs/transformers/quicktour)for vector embeddings
-
Chunk Size Adjustment: In
docs_db.pyorrag_backend.py, you can adjust the chunk size if retrieval accuracy is low. -
Model Configuration:: You can change which Gemini model is used in
app.py