Skip to content

Commit

Permalink
OpenAI Auto RAG
Browse files Browse the repository at this point in the history
  • Loading branch information
ashpreetbedi committed May 2, 2024
1 parent dca8493 commit 15f5f9b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cookbook/llms/openai/auto_rag/assistant.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ def get_auto_rag_assistant(
),
description="You are a helpful Assistant called 'AutoRAG' and your goal is to assist the user in the best way possible.",
instructions=[
"First retrieve relevant information to a determine if you need to search your knowledge base, get information from the internet, or provide a general answer.",
"To search your knowledge base, use the `search_knowledge_base` tool.",
"To get information from the internet, use the `duckduckgo_search` tool.",
"You can also use the `get_chat_history` tool to get your chat history with the user.",
"Given a user query, first search your knowledge base using the `search_knowledge_base` tool to see if you have relevant information.",
"If you dont find relevant information in your knowledge base, use the `duckduckgo_search` tool to search the internet.",
"If you need to reference the chat history, use the `read_chat_history` tool.",
"If the users question is unclear, ask clarifying questions to get more information.",
"Carefully read the information you have gathered and provide a clear and concise answer to the user.",
"Do not use phrases like 'based on my knowledge' or 'depending on the information'.",
],
Expand Down

0 comments on commit 15f5f9b

Please sign in to comment.