Documentation Index
Fetch the complete documentation index at: https://docs.moss.dev/llms.txt
Use this file to discover all available pages before exploring further.
Strategies
- Vector similarity (semantic)
- Keyword/BM25
- Hybrid (best of both)
Hybrid weighting (alpha)
alpha = 1.0: pure semantic (embeddings)alpha = 0.0: pure keyword- Between 0 and 1 blends the two (default is semantic-heavy,
0.8)
Metadata filtering
Narrow query results to documents whose metadata matches a filter. Metadata filtering is evaluated on the locally loaded index — callloadIndex() /
load_index() before querying with a filter.
Supported operators: $eq, $ne, $gt, $gte, $lt, $lte, $in, $nin,
$near. Compose filters with $and / $or.
Tuning
- Adjust
topK/top_kand score thresholds - Layer metadata filters to narrow candidate sets
- Group queries by intent (e.g., returns, billing, onboarding) and tune per index
- Choose model per index:
moss-minilm(fast) ormoss-mediumlm(more accurate)