Similarity Search
block enables users to efficiently sift through large volumes of text, identifying and extracting the most pertinent sections based on a specified search query. This powerful functionality caters to various applications where rapid information retrieval is essential.
I/O | Feature | Type | Simple Explanation |
---|---|---|---|
input | query | string | The term or phrase you want to search for in the text. |
input | num_results | number | Indicates how many relevant sections should be returned. |
input | chunk_size (optional) | number | Size of each retrieved section in tokens; defaults to 1000 tokens. |
input | text | string | The large body of text that will be searched through. |
output | relevant_chunks | string[] | An array containing the most relevant segments related to your query. |
Similarity Search
block is indispensable!