Search and retrieve context from Airweave collections using the search script at {baseDir}/scripts/search.py.
Search when the user:
Don't search when:
Turn user intent into effective search queries:
| User Says | Search Query |
|---|---|
| ----------- | -------------- |
| "What did Sarah say about the launch?" | "Sarah product launch" |
| "Find the API documentation" | "API documentation" |
| "Any bugs reported this week?" | "bug report issues" |
| "What's our refund policy?" | "refund policy customer" |
Tips:
Execute the search script:
python3 {baseDir}/scripts/search.py "your search query"
Optional parameters:
--limit N — Max results (default: 20)--temporal N — Temporal relevance 0-1 (default: 0, use 0.7+ for "recent", "latest")--strategy TYPE — Retrieval strategy: hybrid, semantic, keyword (default: hybrid)--raw — Return raw results instead of AI-generated answer--expand — Enable query expansion for broader results--rerank / --no-rerank — Toggle LLM reranking (default: on)Examples:
# Basic search
python3 {baseDir}/scripts/search.py "customer feedback pricing"
# Recent conversations
python3 {baseDir}/scripts/search.py "product launch updates" --temporal 0.8
# Find specific document
python3 {baseDir}/scripts/search.py "API authentication docs" --strategy keyword
# Get raw results for exploration
python3 {baseDir}/scripts/search.py "project status" --limit 30 --raw
# Broad search with query expansion
python3 {baseDir}/scripts/search.py "onboarding" --expand
Interpreting scores:
Presenting to users:
If search returns nothing useful:
See PARAMETERS.md for detailed parameter guidance.
See EXAMPLES.md for complete search scenarios.
共 1 个版本