Similarity Search not working? Any place to insert openai key?/setting problem?

I'm currently trying to build an agent, and I'm facing some problems in creating a Similarity Search tool. So I used openai text-embedding-3-small @ 1024 to create the vectors and set up the tool as shown in the screenshot. But somehow, when I type in the question "Find tracks like Big Poppa", the agent responds:

I'm sorry, but I was unable to find tracks similar to "Big Poppa" at this time. The similarity search function is currently unavailable.

I tried to see if there is any place to insert openai api key, but I couldn't find one. I wonder if someone could point out the right direction for this problem. Thank you very much!

Standard size vector for that model is 1536.

Hmmm

Which course? GenAI Workshop?

Yes by default the tool currently uses the max-dimensions of the models, we plan to make this configurable, just haven't gotten around to it.

Hi @irene.chen , looking at your screenshot, I would assume your vector index's dimension is 1024 because the Vector Dimension form field sources the value from the index itself (and that's why it's disabled).

I can see you decided to return connected graph data. Did you test the graph query from the Cypher tab? If that graph query fails, then the entire tool call will fail.

Also, do you have an agent invocation id?

Yes GenAI. I use a 1024 vector dimension for this model. So I suppose it is reading the dimensions automatically.

Hi Leonard, thank you for your reply. Yes, I'm using a 1024 dim vector and I also tried turning off the return connected graph data but it also throws the same error. Not sure if I find the correct agent id but based on the url I think it should be: 865f707f-a217-4764-b0eb-c3637a8a2401

Here is an example of a Similarity Search Tool config:

image

Invocation example:

image

The query execution log (<console.neo4j.io/projects/project_id/logs>), notice the overall query is made up of the vector search + the optional graph query configured on the tool

image

Thank you for the instruction! I'm using a free instance, and I filled out the form for the hackathon yesterday. The invocation ID:fe4d8d82-485b-4e37-b77b-4e559609f771

image

Hi @irene.chen, OpenAI text-embedding-3-small @ 1024 should work now.