Running a search query
You can use the search function in the Aryn SDK to run a search query on your DocSet:Query Type
You can choose different ways to search your DocSet:- Hybrid: Combines keyword and vector search.
- Vector (Semantic): Finds similar items in a dataset by comparing their numerical representations (vector embeddings) using a k-NN algorithm.
- Lexical: Uses the BM25 algorithm, a ranking function used by search engines to estimate the relevance of documents to a given search query. The search call will perform an exact string match and return results where the query string shows up as a standalone word.
- Keyword: The search call will perform a substring match and return results that contain strings that contain the query term specified.
Properties Filter
You can filter your search results using your DocSet’s Properties. The filter is a boolean expression, specifying the condition to use. It is a string consisting of conditions separated by AND keywords. The following are a few examples:Operators
The following operators are supported:=
>
>=
<
<=
<>
(not equal to)like
Return Type
You can return Document chunks (elements) withelement
or full documents with doc
.