0

So I am using pinecone and using self query retrieval with gemini 2.5 pro, with langsmith i came to know the default prompt strictly instructs the ai to use specific comparators

Default Prompt in pineconetranslator:

A comparison statement takes the form: `comp(attr, val)`:

- `comp` (eq | ne | gt | gte | lt | lte): comparator

- `attr` (string): name of attribute to apply the comparison to

- `val` (string): is the comparison value

MY PROMPT:

{
"type": "string[]",
"description": "An array of technologies. Use this for filtering by technical skills. The query must use the `in` operator for this field. For example, to find projects with React and Node.js, a good filter would be `and(in(\"techStack\", [\"React\", \"Node.js\"]))`"
}

But the output comes to be using the operators allowed by the default prompt , i am unable to use IN comparator for pinecone query , whats the solution to it?

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.