Comments (5)
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](https://private-user-images.githubusercontent.com/377330/260611631-45c45dd4-eff4-4996-9a6e-da44ec447a96.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE0MDkxNDcsIm5iZiI6MTcyMTQwODg0NywicGF0aCI6Ii8zNzczMzAvMjYwNjExNjMxLTQ1YzQ1ZGQ0LWVmZjQtNDk5Ni05YTZlLWRhNDRlYzQ0N2E5Ni5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzE5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcxOVQxNzA3MjdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0zNWU1M2EzZGExOTcyYzI2MWZmMTc4M2NkOTc0NGY4ZjI2OTljZmNmNDQwYjViYTFjZTJlNjNlYWJmYzUzMzQyJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.s4DxZjYGD9o8MjP1yKDhLgmA6kgHtcxXzhZDQeryE74)
from ai-town.
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.
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](https://private-user-images.githubusercontent.com/377330/260616078-19eace5f-f371-40f5-82f5-882344980c59.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE0MDkxNDcsIm5iZiI6MTcyMTQwODg0NywicGF0aCI6Ii8zNzczMzAvMjYwNjE2MDc4LTE5ZWFjZTVmLWYzNzEtNDBmNS04MmY1LTg4MjM0NDk4MGM1OS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzE5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcxOVQxNzA3MjdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT02OWZlYWVjMTk1ZTE1YzBjODZjZWRjYWY3MzUwN2ZkYzAxMWNhZjA5YjYzZTkzNTY1NmUzN2U3MDY0Mjk3MDc3JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.m1cxFXC3seHer6sML2TCaqAP0KZn01v2-OjfyappOEw)
from ai-town.
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.
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)
- do people want a 3d spatial computing town? HOT 1
- [feature request] windows .bat launcher
- "Interact" button doesn't work HOT 2
- Agents not having any conversations
- Backend won't start HOT 2
- Provide support for Groq
- Error fetching POST http://127.0.0.1:3210/api/push_config 500 Internal Server Error HOT 8
- Localhost refused to connect HOT 2
- Pop OS - Agents Not Having Conversations HOT 3
- Meet [Could not resolve "convex/values"] when running on Linux system
- Is there a way to connect to the simulator with my own custom agents?
- Getting an error when running npm run dev HOT 1
- no convex/config.ts? and no just? HOT 2
- Is there a way to change the dimensions of the map? HOT 1
- Convex Local Backend error and termination HOT 1
- Getting Pointer being free is not allocated error in convex-local-backend HOT 2
- Has anyone encountered Unexpected end of JSON input error HOT 1
- Convex Local Backend Errors HOT 1
- Unable to import FS HOT 1
- language setting HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ai-town.