OpenAgentsInc / openagents

An open agents platform (wip)
https://chat.openagents.com
GNU Affero General Public License v3.0
162 stars 21 forks source link

No response from agent #426

Closed dekdynamics closed 2 months ago

dekdynamics commented 2 months ago

Hi - This is a followup to my previous issue that was closed as fixed.

I removed all of the documents from the agent repo except for the lightning whitepaper, and I asked a more direct question:

image

Its been a few minutes like this.

The first page of the pdf has the answer:

image
greptile-apps[bot] commented 2 months ago

Please follow these steps to troubleshoot and resolve the issue:

  1. Check Agent's RAG Status:

    • Ensure the agent's is_rag_ready status is true. You can verify this in the agents table or by checking the agent's status in the App\Models\Agent model.
  2. Verify Document Processing:

    • Ensure the document is correctly uploaded and associated with the agent. Check the AgentFile model and the documents relationship in the Agent model.
  3. Review Document Deletion:

    • Confirm that the document deletion process did not remove necessary files. Check the delete method in app/Livewire/Agents/Modals/DocumentDelete.php.
  4. Check RAG Job Processing:

    • Ensure the ProcessAgentRag job is correctly processing the document. Review the handle method in app/Jobs/ProcessAgentRag.php.
  5. Debugging:

    • Add logging in the ragRun method in app/Livewire/Chat.php to trace the RAG job execution and identify any issues.
  6. Livewire Component:

    • Ensure the Livewire component is correctly dispatching and handling events. Check the ragRun and process_nostr methods in app/Livewire/Chat.php.

If the issue persists, please provide additional logs or error messages for further assistance.

References

/app/Livewire/Agents/Modals/DocumentDelete.php /app/Livewire/Agents/Modals/Delete.php /app/Livewire/Agents/Partials/Documents.php /app/Livewire/Agents/Create.php /app/Livewire/Agents/Edit.php /app/Livewire/Agents/Index.php /app/Http/Controllers/Api/v1/DocumentsController.php /app/Jobs/ProcessAgentRag.php /app/Models/Agent.php /app/Livewire/Chat.php /database/migrations/2024_04_18_140309_create_agents_table.php /database/seeders/AgentSeeder.php /resources/views/livewire/agents /resources/views/livewire/agents/modals /resources/views/livewire/agents/partials /routes/api/v1.php

Ask Greptile

svemir commented 2 months ago

This was mostly caused by a deployment issue, but it actually unearthed another bug that we should be able to fix soon.

svemir commented 2 months ago

https://github.com/OpenAgentsInc/openagents/pull/429

AtlantisPleb commented 2 months ago

Looks fixed, please reopen if you encounter it again