Bootcamp: Solisoma(week5 assesment)
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 51,
|
||||
"execution_count": null,
|
||||
"id": "3d526a96",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
@@ -25,7 +25,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 52,
|
||||
"execution_count": null,
|
||||
"id": "3d14dedb",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
@@ -300,7 +300,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 54,
|
||||
"execution_count": null,
|
||||
"id": "075a4612",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
@@ -311,7 +311,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 55,
|
||||
"execution_count": null,
|
||||
"id": "8c48444a",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
@@ -395,91 +395,10 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 56,
|
||||
"execution_count": null,
|
||||
"id": "4f16318f",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"* Running on local URL: http://127.0.0.1:7877\n",
|
||||
"* To create a public link, set `share=True` in `launch()`.\n"
|
||||
]
|
||||
},
|
||||
{
|
||||
"data": {
|
||||
"text/html": [
|
||||
"<div><iframe src=\"http://127.0.0.1:7877/\" width=\"100%\" height=\"500\" allow=\"autoplay; camera; microphone; clipboard-read; clipboard-write;\" frameborder=\"0\" allowfullscreen></iframe></div>"
|
||||
],
|
||||
"text/plain": [
|
||||
"<IPython.core.display.HTML object>"
|
||||
]
|
||||
},
|
||||
"metadata": {},
|
||||
"output_type": "display_data"
|
||||
},
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"tourist-guide\n",
|
||||
"\n",
|
||||
"\n",
|
||||
"\u001b[1m> Entering new None chain...\u001b[0m\n",
|
||||
"\u001b[32;1m\u001b[1;3mTo explain the \"tourist-assistant\" file line by line, I need to fetch its content first. I'll look for the file to understand its structure and code implementation.\n",
|
||||
"\n",
|
||||
"Action: get_file \n",
|
||||
"Action Input: tourist-assistant \n",
|
||||
"\u001b[0m\n",
|
||||
"Observation: \u001b[33;1m\u001b[1;3mNo file named 'tourist-assistant \n",
|
||||
"' found in the repository.\u001b[0m\n",
|
||||
"Thought:\u001b[32;1m\u001b[1;3mIt seems that there isn't a file named \"tourist-assistant\" in the repository. I should check if there are any similar files or if the name might be slightly different. \n",
|
||||
"\n",
|
||||
"Action: repo_context_search \n",
|
||||
"Action Input: tourist-assistant \n",
|
||||
"\u001b[0m\n",
|
||||
"Observation: \u001b[36;1m\u001b[1;3mIt seems like you are referring to the Tourist Assistant application. How can I assist you with it?\u001b[0m\n",
|
||||
"Thought:\u001b[32;1m\u001b[1;3mIt appears that \"tourist-assistant\" might refer to a broader application or a specific functionality rather than a direct file. I should search for related components or files that may contain implementations relevant to a tourist assistant feature.\n",
|
||||
"\n",
|
||||
"Action: repo_context_search \n",
|
||||
"Action Input: Tourist Assistant \n",
|
||||
"\u001b[0m\n",
|
||||
"Observation: \u001b[36;1m\u001b[1;3mHello! How can I assist you today with your travel inquiries or questions about tourist destinations?\u001b[0m\n",
|
||||
"Thought:\u001b[32;1m\u001b[1;3mIt seems that the repository contains a conversational interface for a Tourist Assistant application, but I haven't found specific code files or implementations associated with it yet. I should look for files related to this application that might contain relevant code.\n",
|
||||
"\n",
|
||||
"Action: repo_context_search \n",
|
||||
"Action Input: tourist \n",
|
||||
"\u001b[0m\n",
|
||||
"Observation: \u001b[36;1m\u001b[1;3mI'm here to help you with information about tourist destinations! What specific question do you have or what location are you interested in?\u001b[0m\n",
|
||||
"Thought:\u001b[32;1m\u001b[1;3mIt appears that the repository is structured around a conversational interface rather than a traditional file named \"tourist-assistant\". I need to continue searching for specific components related to tourism or tourist assistance features that might provide the code or functionality related to the user query.\n",
|
||||
"\n",
|
||||
"Action: repo_context_search \n",
|
||||
"Action Input: assistant \n",
|
||||
"\u001b[0m\n",
|
||||
"Observation: \u001b[36;1m\u001b[1;3mI don't know.\u001b[0m\n",
|
||||
"Thought:\u001b[32;1m\u001b[1;3mIt seems that I haven't been able to find a specific file or code implementation directly related to \"tourist-assistant\" or any closely related terms. The repository might be using a different structure or naming convention. I could either try searching for more specific terms related to what the Tourist Assistant does or ask for clarification on what specific functionality or aspect of the Tourist Assistant the user would like to know about.\n",
|
||||
"\n",
|
||||
"Action: repo_context_search \n",
|
||||
"Action Input: travel assistant \n",
|
||||
"\u001b[0m\n",
|
||||
"Observation: \u001b[36;1m\u001b[1;3mHello! How can I assist you with your travel plans or questions about tourist destinations? Feel free to ask!\u001b[0m\n",
|
||||
"Thought:\u001b[32;1m\u001b[1;3mI haven’t been able to locate a specific file or detailed code related to \"tourist-assistant\" or similar terms in the repository. It seems the repository is primarily focused on providing conversational responses to users rather than showing specific code implementations. To provide a more accurate answer, I might need to know more about what specific functionality or aspect of the Tourist Assistant you are interested in.\n",
|
||||
"\n",
|
||||
"Final Answer: I couldn't find a file named \"tourist-assistant\" or similar in the repository. The repository appears to focus on a conversational interface for a Tourist Assistant application. If you have specific aspects or functionalities you'd like to know about, please specify!\u001b[0m\n",
|
||||
"\n",
|
||||
"\u001b[1m> Finished chain.\u001b[0m\n"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "stderr",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"c:\\Users\\hp\\projects\\gen-ai\\llm_engineering\\.venv\\Lib\\site-packages\\langchain\\chains\\base.py:487: UserWarning: 'ConversationBufferMemory' got multiple output keys: dict_keys(['output', 'messages']). The default 'output' key is being used. If this is not desired, please manually set 'output_key'.\n",
|
||||
" self.memory.save_context(inputs, outputs)\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"interface = chatInterface(G.run, chat_type=\"messages\")"
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user