Semantic Search
What is Semantic Search?
Prerequisites
Step 1: Make a Basic Search
curl -X POST https://api-integrations.snackprompt.com/v1/kb/search \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d '{
"query": "what are the return policies?",
"filters": {
"tenant_id": "YOUR_TENANT_ID"
},
"limit": 5
}'Parameters
Parameter
Type
Required
Description
Step 2: Understand the Similarity Score
How to Interpret the Score
Score
Interpretation
Step 3: Use Filters to Refine Results
Filter by Specific Elemental
Filter by Tags
Filter by Source Type
Available Filters
Filter
Type
Required
Description
Combining Filters
Tips for Better Results
1. Be Specific in Your Query
2. Use Natural Language
3. Limit the Results
4. Use Filters When Possible
Next Steps
Last updated
Was this helpful?