rukshar69 / nlp-llm-medicalbot Goto Github PK
View Code? Open in Web Editor NEWA quantined llama 2 based medical bot using a medical book pdf for vector database and chainlit for ui
A quantined llama 2 based medical bot using a medical book pdf for vector database and chainlit for ui
(llama) E:\LLAMA>chainlit run model.py -w
2024-02-28 16:40:08 - Your app is available at http://localhost:8000
2024-02-28 16:40:11 - Translation file for en-IN not found. Using default translation en-US.
2024-02-28 16:40:15 - Load pretrained SentenceTransformer: sentence-transformers/all-MiniLM-L6-v2
2024-02-28 16:40:19 - Loading faiss with AVX2 support.
2024-02-28 16:40:19 - Could not load library with AVX2 support due to:
ModuleNotFoundError("No module named 'faiss.swigfaiss_avx2'")
2024-02-28 16:40:19 - Loading faiss.
2024-02-28 16:40:19 - Successfully loaded faiss.
2024-02-28 16:40:43 - 1 validation error for StuffDocumentsChain
root
document_variable_name context was not found in llm_chain input_variables: [''] (type=value_error)
Traceback (most recent call last):
File "E:\LLAMA\llama\lib\site-packages\chainlit\utils.py", line 39, in wrapper
return await user_function(**params_values)
File "E:\LLAMA\model.py", line 63, in start
chain = qa_bot()
File "E:\LLAMA\model.py", line 55, in qa_bot
qa = retrieval_qa_chain(llm, qa_prompt, db)
File "E:\LLAMA\model.py", line 39, in retrieval_qa_chain
qa_chain = RetrievalQA.from_chain_type(
File "E:\LLAMA\llama\lib\site-packages\langchain\chains\retrieval_qa\base.py", line 105, in from_chain_type
combine_documents_chain = load_qa_chain(
File "E:\LLAMA\llama\lib\site-packages\langchain\chains\question_answering_init_.py", line 249, in load_qa_chain
return loader_mapping[chain_type](
File "E:\LLAMA\llama\lib\site-packages\langchain\chains\question_answering_init_.py", line 81, in _load_stuff_chain
return StuffDocumentsChain(
File "E:\LLAMA\llama\lib\site-packages\langchain_core\load\serializable.py", line 120, in init
super().init(**kwargs)
File "E:\LLAMA\llama\lib\site-packages\pydantic\v1\main.py", line 341, in init
raise validation_error
pydantic.v1.error_wrappers.ValidationError: 1 validation error for StuffDocumentsChain
root
document_variable_name context was not found in llm_chain input_variables: [''] (type=value_error)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.