Welcome to RAG Time Discussions! 🎉 #12
Replies: 2 comments 3 replies
-
In Journey 1 RAG-Fundamentals notebook, step 6 is missng the code where USER_MESSAGE is augmented with search results retrieved in previous step. Shouldn't it be USER_MESSAGE = f"{retrieved_context}\n\n{user_question}"? or am I missing something? |
Beta Was this translation helpful? Give feedback.
-
Hello, In the Journey 1 - RAG and Indexing Fundamentals there is a difference in the code shown in the video segment and the code in the notebook on Github. It seems that the step for augmenting the query with the search results has been omitted in the Github repo. This is the code from the video: First, let's collect the context from the search resultscontext = "" SYSTEM_MESSAGE = """ Context: Now we can use the matches to generate a responseresponse = openai_client.chat.completions.create( This is the code from the Notebook on Github SYSTEM_MESSAGE = """ Now we can use the matches to generate a responseresponse = openai_client.chat.completions.create( |
Beta Was this translation helpful? Give feedback.
-
👋 Welcome!
We’re using Discussions as a place to connect with other members of our community. We hope that you:
build together 💪.
To get started, comment below with an introduction of yourself and tell us about what you do with this community.
Beta Was this translation helpful? Give feedback.
All reactions