Chatbot for Biodata Catalyst
Clone the BDC website repo to a directory with the same parent directory as this repo.
Copy .env_example
to .env
and make any necessary changes
pip install -r requirements.txt
kubectl -n ner port-forward svc/vllm-llama-3-1-8b-instruct 8080:80 # vLLM port-forward
kubectl -n ner port-forward svc/ollama 11434:11434 # Ollama port-forward
# kubectl -n ner port-forward ollama-dd6845745-2txz8 11434:11434
Edit .env
to match
python -m src.preproc_doc # preprocess BDC website repo
python -m src.prepare_chromadb # create chroma db
streamlit run ./src/streamlit_app.py # run streamlit app
Warning
- If you see
ValueError: Received disallowed comparator nin
when running the chatbot app, addComparator.IN, Comparator.NIN
tolangchain_community\query_constructors\chroma.py
underallowed_comparators
Important
- To use
${\color{orange}\text{vLLM}}$ API for chat completion, removeparallel_tool_calls=False
fromlangchain_openai\chat_models\base.py
- Chroma DB initialization might quit without error or warning, might be caused by compatibility issue with Windows.