Git Product home page Git Product logo

Comments (5)

frankcarey avatar frankcarey commented on August 17, 2024

Ah, Looks like I used the wrong name for my pinecone index name.. (Used the key name, not the index name). I'm not getting that error anymore, but still not seeing anything in pinecone... just these messages.

image

from ai-town.

frankcarey avatar frankcarey commented on August 17, 2024

I'm trying npx convex run init:reset but getting an error when I try that.

$ npx convex run init:reset
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
- Preparing Convex functions...

√ 22:24:56 Convex functions ready! (4.43s)
✖ Failed to run function "init:reset":
Error: Uncaught Error: Error: Not implemented: get body for Response: Try using .text(), .json(), blob(), or .arrayBuffer() instead. Consider calling an action defined in Node.js instead (https://docs.convex.dev/functions/actions).

    at async handler (../convex/init.ts:103:2)

from ai-town.

frankcarey avatar frankcarey commented on August 17, 2024

OK - I misread this commit. Looks like these lines were meant to be commented out and my mistake with the pinecone index name just happened to cause a similar error. I undid those changes and now this succeeds.

npx convex run init:reset --no-push

.. and I'm seeing 17 vectors now in pinecone (note to others, the UI can take a second to load and show the correct amount on pinecone. Until then it shows 0)

For some reason after this, it took almost 10 minutes more before it started showing conversations, but it is doing that now finally. I see pinecone upserts and queries finally happening. Also convex logs are showing non-zero numbers. Hope this helps someone else if they need to debug as well.

image

from ai-town.

ianmacartney avatar ianmacartney commented on August 17, 2024

Sorry this was so much trouble!
Pinecone used to support namespaces on starter plans, which is what I was developing with, but it seems they've made those paid-only for newer indexes.
the init:reset will add a new world and kick off the pinecone inserts.
As for the 10 minute delay: my guess is something failed hard when processing a batch of agents, and they got stuck in a "thinking" state. Each agent will only be processed in one batch at a time, but there's a cron job that runs that checks if any agent has been thinking for >10min and resets them. There is a try/except in the action that processes the batch and tries to do cleanup by just having them walk away, but if there was another exception when trying to walk, then it could get stuck.
If you find a root cause it'd be great to know what to fix.

from ai-town.

frankcarey avatar frankcarey commented on August 17, 2024

Sorry this was so much trouble!

No worries! Thanks to the team for creating this and I certainly didn't help matters by getting the Pinecone setup wrong.

A couple suggestions to help folks like me contribute and debug, but feel free to close this ticket as well:

  • Having a high-level flow/component diagram of what things are doing would be helpful. Obviously we can read the code, but I notice there are even some principals you posted on the discord already that could be codified into an FAQ or something. I get things are moving fast and this might be premature, but it would certainly help grok the architecture, especially the flow of a batch of agents, etc.
  • In lieu of that, the readme has one-word summaries of the third party services being used, but expanding on that a little bit would also help to understand when things go wrong where to focus on.
  • Finally a related topic is error reporting. Seems the serverless functions on Convex either don't respond with a helpful error messages (in the Convex logs) or the functions themselves are not catching errors from like Pinecone and passing them through.

Thanks again for your work here, excited to see projects like this advance and I'll look for more ways to contribute!

from ai-town.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.