Overview
The Algolia Agent Node provides intelligent search and data browsing capabilities for Algolia indices. This node allows you to:- List available Algolia indices
- Search within specific indices with natural language
- Retrieve specific objects by ID
- Filter and limit search results efficiently
Configuration Parameters
To set up the Algolia Agent Node, connect your Algolia account with your Application ID and Search API Key.Node Configuration
-
Prompt:
Describe what the agent should search for or retrieve from Algolia.
List indices, then search index ‘products’ for ‘iphone’ with attributesToRetrieve
Get the object with ID ‘prod_123’ from the ‘catalog’ index
Search for all items in ‘inventory’ where category is ‘electronics’
-
Tools
Select which tools the Algolia Agent can use:
Tool name Description List Indices Get all indices for the application Search Index Search within a specific index Get Object Fetch a single object by objectID
Advanced Settings
Advanced Settings
- System Prompt: Customize how the agent approaches Algolia searches.
- Model: Select the language model for the agent.
- Max Steps: Set the maximum number of steps the agent can take (1-20).
- Enable Model Fallbacks: Allow automatic fallback to alternative models if the primary model fails.
Expected Inputs and Outputs
-
Inputs:
- The node accepts text input that can be referenced in the prompt.
-
Outputs:
- output: Search results or retrieved data
- conversation: Agent’s reasoning and search strategy
Use Case Examples
- Product Search: Use the agent to search product catalogs and retrieve specific product information based on user queries.
- Content Discovery: Let the agent intelligently search through content indices to find relevant articles, documents, or media.
- Data Retrieval: Configure the agent to fetch specific objects and filter results based on complex criteria.
Error Handling and Troubleshooting
- Authentication Issues: Ensure your Algolia Application ID and Search API Key are correctly configured.
- Index Not Found: Verify that the index name exists in your Algolia application.
- Query Syntax: The agent constructs queries automatically, but ensure your prompts are clear about what you’re searching for.