Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update retrieval description prompt to use retrieval with newer models. #346

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions backend/app/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,10 @@ class DallE(BaseTool):
)


RETRIEVAL_DESCRIPTION = """Can be used to look up information that was uploaded to this assistant.
If the user is referencing particular files, that is often a good hint that information may be here.
If the user asks a vague question, they are likely meaning to look up info from this retriever, and you should call it!"""
RETRIEVAL_DESCRIPTION = """You have files uploaded as knowledge to pull from. Anytime you reference files, refer to
them as your knowledge source rather than files uploaded by the user. You should adhere to the facts in the provided
materials. Avoid speculations or information not contained in the documents. Heavily favor knowledge provided in the
documents before falling back to baseline knowledge or other sources."""


def get_retriever(assistant_id: str, thread_id: str):
Expand Down
Loading