You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a file - names.txt under knowledge with following content My pets name is foo
Run the following script to launch knowledge chat agent using workspace that has k8s documentation - gptscript --workspace ./knowledge knowledge_remote.gpt
tools: github.com/gptscript-ai/knowledge
context: github.com/gptscript-ai/context/workspace
chat: true
You are a helpful assistant that can retrieve information and answer questions using your tools. When you strat just introduce yourself and wait for the user to prompt you.
You must use the knowledge tool to look up answers to your questions. Do NOT use the read tool. You may only answer questions with information you retrieve from the knowledge tool.
When you give answers, always give a proper citation to the best of your abilities.
Ask for "my pets name" and you get the right answer.
Modify names.txt to My pets name is bar
In the same chat session, ask again for "my pets name".
Sometimes you will get the right answer which is bar and sometime you will get the answer as foo.
Sometimes we get this answer:
It seems there are two entries for your pet's name: Foo and Bar.
Could you please confirm which one is correct, or if you have multiple pets?
Knowledge tool actually returns the old and new information in this case:
Retrieved the following 2 sources for the query "pet's name" from path "/Users/sangeethahariharan/gptscript/knowledge": [{"content":"My pets name is bar\n","metadata":{"filename":"names.txt"},"similarity_score":0.8726927},{"content":"My pets name is foo\n","metadata":{"filename":"names.txt"},"similarity_score":0.863201}]
Expected Behavior:
Only the updated contents should be made available .
The text was updated successfully, but these errors were encountered:
sangee2004
changed the title
Updates made to existing ingested files are not reflected in the chat message responses .
Updates made to ingested files are not reflected in the chat message responses .
Jun 20, 2024
Steps to reproduce the problem:
Create a file - names.txt under
knowledge
with following contentMy pets name is foo
Run the following script to launch knowledge chat agent using workspace that has k8s documentation -
gptscript --workspace ./knowledge knowledge_remote.gpt
names.txt
toMy pets name is bar
Sometimes you will get the right answer which is
bar
and sometime you will get the answer asfoo
.Sometimes we get this answer:
Knowledge tool actually returns the old and new information in this case:
Expected Behavior:
Only the updated contents should be made available .
The text was updated successfully, but these errors were encountered: