Skip to content

Commit 4db9cbd

Browse files
committed
Adding more text to notebook
1 parent b41d6c9 commit 4db9cbd

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Labs/lab_4_langchain.ipynb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,9 @@
354354
"source": [
355355
"### Create the agent\n",
356356
"\n",
357-
"The [`create_conversational_retrieval_agent`](https://python.langchain.com/docs/use_cases/question_answering/conversational_retrieval_agents#agent-constructor) is a built-in agent that includes conversational history as well uses the [OpenAIFunctionsAgent](https://python.langchain.com/docs/modules/agents/agent_types/openai_functions_agent#using-openaifunctionsagent) as its underlying implementation."
357+
"The [`create_conversational_retrieval_agent`](https://python.langchain.com/docs/use_cases/question_answering/conversational_retrieval_agents#agent-constructor) is a built-in agent that includes conversational history as well uses the [OpenAIFunctionsAgent](https://python.langchain.com/docs/modules/agents/agent_types/openai_functions_agent#using-openaifunctionsagent) as its underlying implementation.\n",
358+
"\n",
359+
"Remember that an agent leverages the LLM to assess the incoming request with the current context to decide what steps or actions need to be executed and in what order. LangChain agents can leverage tools. A tool can be an integration into an external system, custom code, or even another chain."
358360
]
359361
},
360362
{
@@ -372,8 +374,7 @@
372374
" You are designed to answer questions about the products that Cosmic Works sells, the customers that buy them, and the sales orders that are placed by customers.\n",
373375
"\n",
374376
" If you don't know the answer to a question, respond with \"I don't know.\"\n",
375-
" \"\"\"\n",
376-
" \n",
377+
" \"\"\" \n",
377378
")\n",
378379
"agent_executor = create_conversational_retrieval_agent(llm, tools, system_message = system_message, verbose=True)"
379380
]

0 commit comments

Comments
 (0)