Advanced
Row Similarity Search
Node Inputs
-
num results:
- Data Type: integer
- Description: The maximum number of search results to return. If not specified, default is set to return 5 results.
- Is Optional: Yes
- Placeholder: “Enter maximum number of search results. Default is 5.”
-
query:
- Data Type: text
- Description: The text phrase you want to look for within the provided text input.
- Is Optional: No
- Placeholder: “Enter your query”
-
text:
- Data Type: text
- Description: The larger body of text where the node will look for the query.
Node Output
- search result:
- Data Type: text
- Description: The lines of the input text that are most relevant to the query.
Node Functionality
The Row Similarity Search node processes input text line by line and identifies the lines that are most closely related to a specified search query. It retrieves and returns up to a set number of results (num results
), highlighting those parts of the text that are most relevant to what is being searched.
When To Use
This node is ideal for scenarios where you need to sift through large amounts of text to find the parts most relevant to a particular inquiry or keyword. Examples of use cases include:
- Searching customer feedback or reviews for mentions of a specific product feature.
- Finding relevant answers or statements in FAQs or support documents.
- Filtering through logs or records to locate specific events or entries.
- Extracting pertinent sentences from a body of text for summarization or analysis.
Use this node to easily search and retrieve the information most relevant to your needs from within a large text without having to manually read through every line.