Kashish commited on
Commit Β·
bfc6f8c
1
Parent(s): e92d49a
Fix README metadata for Hugging Face Spaces
Browse files12343 unmodified lines8910111213147 unmodified lines222324252627282930313233343536373839404142434445464748495051<<<<<<< HEAD# FAQ RAG ChatbotRAG chatbot for a FAQ knowledge base. Uses FAISS for vector search with dense embeddings and a BM25 hybrid retriever.3 unmodified lines- Virtualenv with dependencies in `requirements.txt`## Quick setup1. Activate virtualenv2. Install packages:```powershellpip install -r requirements.txt7 unmodified lines- `GOOGLE_GENAI_API_KEY` β API key for the Google GenAI LLM- `HF_TOKEN` β Hugging Face token to avoid unauthenticated download slowdowns## Building the vectorstore (recommended before first run)Run the one-shot builder to compute embeddings and persist the FAISS index. This avoids the expensive first-request work during normal usage.```powershellmyenv\Scripts\python.exe build_index.py```On first run this can take ~15β25s depending on hardware and network (model download).## Run CLI```powershellmyenv\Scripts\python.exe cli.py "What is the Vicharanashala internship?"```## Run API```powershellmyenv\Scripts\python.exe -m uvicorn app:app --reload```Then POST JSON to `http://127.0.0.1:8000/chat`:```json{ "question": "What is VINS?" }```## Notes & guidance- The first run must compute embeddings if the index does not exist.- To avoid repeated downloads and speed up startup: set `HF_TOKEN` and run `build_index.py` once on the host machine.- If you need smaller cold-start times, consider precomputing embeddings offline or using an even smaller embedding model.123456789101112133 unmodified lines17181920212223242526277 unmodified lines35363738394041424344454647484950515253545556575859606162636465---title: CSFAQ Projectemoji: π»colorFrom: purplecolorTo: redsdk: dockerapp_file: app.pypinned: false---# FAQ RAG ChatbotRAG chatbot for a FAQ knowledge base. Uses FAISS for vector search with dense embeddings and a BM25 hybrid retriever.3 unmodified lines- Virtualenv with dependencies in `requirements.txt`## Quick setup1. Activate virtualenv:```powershellcd C:\Users\gupta\Desktop\faq-ai-chatbotmyenv\Scripts\Activate.ps1```2. Install packages:```powershellpip install -r requirements.txt7 unmodified lines- `GOOGLE_GENAI_API_KEY` β API key for the Google GenAI LLM- `HF_TOKEN` β Hugging Face token to avoid unauthenticated download slowdowns## Build the vectorstoreRun once to compute embeddings and persist the FAISS index:```powershellmyenv\Scripts\python.exe build_index.py```On first run this can take ~15β25s depending on hardware and network.## Run CLI```powershellmyenv\Scripts\python.exe cli.py```## Run API```powershellmyenv\Scripts\python.exe -m uvicorn app:app --reload```Then POST JSON to `http://127.0.0.1:8000/chat`:```json{ "question": "What is VINS?" }```## Notes- The first run must compute embeddings if the index does not exist.- To avoid repeated downloads and speed up startup: set `HF_TOKEN` and run `build_index.py` once.- Do not commit `vectorstore/`, `myenv/`, or `.env`.
README.md+23-9