otto8-ai / otto8

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

OneDrive knowledge - Issues seen when testing with onedrive knowledge files. #33

Closed sangee2004 closed 1 month ago

sangee2004 commented 1 month ago

Commit - d0155d476fb

Pre Req - set ONEDRIVE_TOOL=github.com/gptscript-ai/knowledge-onedrive-integration@otto when starting server. Steps to reproduce the problem:

  1. Create an agent using otto create
  2. Add knowledge file from onedrive using - curl localhost:8080/agents/a15mdwq/onedrive-links -d '["<one drive share url"]' Knowledge files from onedrive url gets ingested successfully and able see the knowledge files associated withe assistant. Also able to chat with assistant and get information from knowledge files.

Issues seen:

Thread reports UNIQUE Constraint Violation in Dataset error

t1ingest-zrlxt   Title: "Error Handling: UNIQUE Constraint Violation in Dataset"              r1sfm4n   waiting   7 minutes ago

See the following errors in the logs:

ERRO[0135] error syncing '_t default/ol1v7ffl': handler otto-controller otto.gptscript.ai/v1, Kind=OneDriveLinks: [routes.go:76] failed to create metadata file: open /Users/sangeethahariharan/Library/Application Support/workspace-provider/9aaa91c7-e991-4a4a-8b97-b2fda40a5064/ol1v7ffl/.knowledge.json: no such file or directory, requeuing 

Also there is constant retries:

DEBU[1531] Handling trigger [default/r12khgq] [otto.gptscript.ai/v1, Kind=Run] 
DEBU[1531] Backing off [default/r12khgq] [otto.gptscript.ai/v1, Kind=RunState] for 4.815824708s 
DEBU[1536] Triggering [default/r12khgq] [otto.gptscript.ai/v1, Kind=Run] from [default/r12khgq] [otto.gptscript.ai/v1, Kind=RunState] 
DEBU[1536] Handling trigger [default/r12khgq] [otto.gptscript.ai/v1, Kind=Run] 
thedadams commented 1 month ago

https://github.com/gptscript-ai/otto/pull/34

thedadams commented 1 month ago

@sangee2004 I merged the fix for this.

sangee2004 commented 1 month ago

Tested with commit -id 53f73363

This issue is not seen anymore.

Ingestion thread does not show any errors: t1ingest-mmfm5 File Ingestion into Dataset r154cdj waiting 6 minutes ago

No errors seen in server logs.