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 promptworkflow that queries the vector DB for context based on a user query. Design a promptworkflow that takes user queries like the ones you defined above and queries the vector DB to find relevant content. The output of your promptworkflow should be a query object with:
the contentstringquery property, which will be embedded for querying nearby documents,
an optional industryfilter 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 takeawaysfilter 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.
contentstringquery: string that will be used to query the vector DB for passages close to the string within the embedding
industryfilter: an optional property containing an array of one or more predefined industry sector tags youd like to filter on
takeawaysfilter: 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
