Skip to main content

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​

InputTypeRequiredDefaultWhat it is
Index fileFileNoThe index file, e.g. knowledge/policies.json (.json.gz keeps it smaller).
QueryStringYesThe question or words to look for.
Top kNumberNo5How many passages to return.
ConnectionStringNoThe embedding connection, when not the one the index was built with.
API keyCredentialNoThe embedding API key, for an index built without a saved connection.
Knowledge baseStringNoA 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​

OutputTypeWhat it is
resultsListBest passages first: n, source, passage, score (0 to 1), text.