Search
Find the passages of a knowledge index that best answer a question, by words and, when the index has embeddings, by meaning.
Command in the Knowledge Q&A toolkit · id ooa.knowledge/search · 6 inputs (1 required), 1 output
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Index file | File | No | The index file, e.g. knowledge/policies.json (.json.gz keeps it smaller). | |
| Query | String | Yes | The question or words to look for. | |
| Top k | Number | No | 5 | How many passages to return. |
| Connection | String | No | The embedding connection, when not the one the index was built with. | |
| API key | Credential | No | The embedding API key, for an index built without a saved connection. | |
| Knowledge base | String | No | A knowledge base kept in One CommandCenter (AI > Knowledge bases), by name; in Studio without One CommandCenter, knowledge-bases/<name>.json.gz in the work folder. |
Outputs
| Output | Type | What it is |
|---|---|---|
| results | List | Best passages first: n, source, passage, score (0 to 1), text. |