The query pipeline
- Load the index once, then query it in-process.
- Optional background sync to the cloud.
- Query pipeline: text -> embed -> retrieve -> rerank (optional).
Prerequisites
- Node.js 18+ or Python 3.10+
- Moss credentials:
MOSS_PROJECT_ID,MOSS_PROJECT_KEY - An index to query (create
faqsvia the Quickstart if you don’t have one yet)
Steps
Ensure the index exists
Ensure the index exists (see Quickstart to create
faqs).Run the sample (JavaScript or Python)
loadIndex / load_index (or opened as a session) before you can query it.