Question: Design a prompt / workflow that queries the vector DB for context based on a user query. Design a prompt / workflow that takes user

Design a prompt/workflow that queries the vector DB for context based on a user query. Design a prompt/workflow that takes user queries like the ones you defined above and queries the vector DB to find relevant content. The output of your prompt/workflow should be a query object with:
the content_string_query property, which will be embedded for querying nearby documents,
an optional industry_filter property, which can be used to filter documents on predefined industry sectors. Please see Overview section for the list of tags and how they work,
an optional takeaways_filter property, which can be used to filter documents based on predefined takeaway tags. Please see Overview section for the list of tags and how they work.
{
content_string_query: [string that will be used to query the vector DB for passages close to the string within the embedding],
industry_filter: [an optional property containing an array of one or more predefined industry sector tags youd like to filter on],
takeaways_filter: [an optional property containing an array of one or more predefined takeaways tags youd like to filter on],
}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!