Giter VIP home page Giter VIP logo

Comments (7)

billmetangmo avatar billmetangmo commented on June 17, 2024

Create a simple data app for the first version using streamlit

from tchoung-te.

billmetangmo avatar billmetangmo commented on June 17, 2024

Python libraries for action-oriented LLMs: https://www.youtube.com/watch?v=XgD5AuzBvs8

from tchoung-te.

billmetangmo avatar billmetangmo commented on June 17, 2024

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.

billmetangmo avatar billmetangmo commented on June 17, 2024

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.

KameniAlexNea avatar KameniAlexNea commented on June 17, 2024

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.

KameniAlexNea avatar KameniAlexNea commented on June 17, 2024

@billmetangmo Done on our side (@Joyce-Tchamdjou )

from tchoung-te.

billmetangmo avatar billmetangmo commented on June 17, 2024

One output key expected, got dict_keys(['result', 'source_documents'])

from tchoung-te.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.