Comments (7)
Create a simple data app for the first version using streamlit
from tchoung-te.
Python libraries for action-oriented LLMs: https://www.youtube.com/watch?v=XgD5AuzBvs8
from tchoung-te.
Search using the relevant documents provided by semantic search: may be we can use embedding then search using OpenAI ? https://learnprompting.org/docs/applied_prompting/build_chatbot_from_kb ?
from tchoung-te.
Vue des tâches: https://www.loom.com/share/0f04f92d3c254fa4bcfc367121982c8a
- Save faiss embedding to avoid to calculate it at ech execution of ui.py
- Change the prompt so that when a person asks for number of assos , it said to go to tchoung-te.mongulu.cm
- Fine tune the prompt if necessary
- See if possible to have sources in chainlit using RetrievalQAWithSourcesChain from langchain
- Ajouter une image sur chainlit.md si possible
- Déploiement de l'application sur nos serveurs ( @billmetangmo )
- Add langsmith,helicone
from tchoung-te.
Here's a formatted explanation of the traceback for other developers:
Traceback (most recent call last):
File "/home/eak/Documents/AI/DeepLearning/tchoung-te/.venv/bin/chainlit", line 8, in <module>
sys.exit(cli())
...
...
File "pydantic/main.py", line 341, in pydantic.main.BaseModel.__init__
pydantic.error_wrappers.ValidationError: 1 validation error for StuffDocumentsChain
__root__
document_variable_name summaries was not found in llm_chain input_variables: ['context', 'question'] (type=value_error)
This is the part of the code that failed:
llm = ChatOpenAI(max_tokens=500, temperature=0, model_name="gpt-3.5-turbo")
chain_type_kwargs = {"prompt": CHAT_PROMPT}
qa = RetrievalQAWithSourcesChain.from_chain_type(
llm=llm,
chain_type="stuff",
retriever=vectors.as_retriever(search_kwargs={"k": 3}),
chain_type_kwargs=chain_type_kwargs,
return_source_documents=True
)
The traceback indicates an error in the code, specifically in the part where you're initializing the qa
object. The error message (pydantic.error_wrappers.ValidationError
) suggests that there's a validation error related to the StuffDocumentsChain
and its input variables. The error message details that the variable name summaries
was not found in the llm_chain input_variables
. You might need to check the input variables and ensure that summaries
is properly defined or used in your code.
from tchoung-te.
@billmetangmo Done on our side (@Joyce-Tchamdjou )
from tchoung-te.
One output key expected, got dict_keys(['result', 'source_documents'])
from tchoung-te.
Related Issues (20)
- automatically fetch update from arn file using argo worflow
- add stream capability
- Evaluate quality of our RAG HOT 2
- Remove chainlit because now run-llama create a JavaScript UI HOT 1
- Ajoutez à gogocarto le lien vers gOOGLE MAPS pour visalize les alentours
- Les associations camerounaises peuvent contenir KMER HOT 1
- Lorsqu'un utilisateur est sur le site m'envoyer une notification
- Utiliser openAI pour normaliser l'adresse. HOT 3
- Remplacez chatwoot par Facebook messenger chat widhet ? HOT 1
- Add inside the code the download , upload and remove of enrich_cache.sqlite
- Add semantic search v1 HOT 3
- Les associations camerounaises peuvent contenir une ville du cameroun mais pas le terme cameroun HOT 5
- Réfléchier à la possibilité de faire que le chargement pandas soit plus rapide HOT 2
- Betterprompt to test the prompt HOT 1
- Refactoring python code HOT 1
- Add architecture
- Create a great expectation for the data result
- Update prompt using bad responses from langsmith HOT 3
- Enhance chatgpt app: For numérical questions HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tchoung-te.