otto8-ai / otto8

Open source AI Agent Platform
Apache License 2.0
4 stars 8 forks source link

Knowledge files are not available when chatting with agents with knowledge files added from UI. #62

Closed sangee2004 closed 1 month ago

sangee2004 commented 1 month ago

UI build - ebdd6176cd56d318 Server build - 6dd088ee

Steps to reproduce the problem:

  1. Create an agent with 1 knowledge file.
  2. Chat with the assistant and ask about this knowledge file. knowledge files are not seen by the knowledge tool.
Screenshot 2024-09-24 at 5 03 09 PM

Note - When the same steps are done using CLI and api , i am able to chat with the assistant and get information about the knowledge file.

When knowledge file was added to assistant using curl command - curl localhost:8080/agents/a16wq8r/knowledge/holidaylist --data-binary @<file>

curl localhost:8080/agents/a16wq8r/knowledge 
{"items":[{"id":"b65c72546ceccfb8317884bbc376cfd6076db983bd2185d3e5ae3cf5eadb185f","created":"2024-09-24T16:57:09-07:00","fileName":"holidaylist","agentID":"a16wq8r","ingestionStatus":{"absolute_path":"/Users/sangeethahariharan/Library/Application Support/otto/workspaces/c42d575c-96a5-4e15-a79a-0dc72476612e/holidaylist","filename":"holidaylist","vectorstore":"chromem-go","msg":"Ingested document","flow":"ingestion","rootPath":"/Users/sangeethahariharan/Library/Application Support/otto/workspaces/c42d575c-96a5-4e15-a79a-0dc72476612e","filepath":"/Users/sangeethahariharan/Library/Application Support/otto/workspaces/c42d575c-96a5-4e15-a79a-0dc72476612e/holidaylist","phase":"store","num_documents":1,"stage":"vectorstore","status":"completed","component":"index","filetype":"application/pdf"},"fileDetails":{}}]}

When knowledge file was added to assistant from UI

curl localhost:8080/agents/a1xwh2m/knowledge
{"items":[{"id":"604e6e3f75cf6779fb4a023d668c3b4e379cd78dda21f4fc3754a886f2530a79","created":"2024-09-24T17:03:49-07:00","fileName":"Holiday_List_2024.pdf","agentID":"a1xwh2m","ingestionStatus":{"msg":"Transformed documents","flow":"ingestion","rootPath":"/Users/sangeethahariharan/Library/Application Support/otto/workspaces/2c22c520-797b-45a3-a77f-96020d53465c","filepath":"/Users/sangeethahariharan/Library/Application Support/otto/workspaces/2c22c520-797b-45a3-a77f-96020d53465c/Holiday_List_2024.pdf","phase":"parse","stage":"transformer","status":"completed"},"fileDetails":{}}]}
thedadams commented 1 month ago

PR: https://github.com/gptscript-ai/otto-ui/pull/37

thedadams commented 1 month ago

@sangee2004 This is ready to test.

sangee2004 commented 1 month ago

Tested with commit id - f021415137381

This issue is not seen anymore. Able to chat with the assistant and get information about the knowledge file.