Overview
This node indexes documents into the Peerag RAG (Retrieval-Augmented Generation) system. It supports indexing either a single document or multiple documents from input items. This is useful for scenarios where you want to add textual data along with metadata to a knowledge base or search index for later retrieval and use in AI or search applications. For example, you can index a single document with specific content and metadata, or batch index multiple documents extracted from previous workflow steps.
Use Case Examples
- Index a single document with custom content and metadata to the Peerag RAG system.
- Index multiple documents from incoming items, specifying which fields contain the document ID, content, and metadata.
Properties
| Name | Meaning |
|---|---|
| Input Mode | Determines whether to index a single document or multiple documents from input items. |
| Document ID | UUID for the single document to index. If left empty, a UUID will be auto-generated. Only used in single document mode. |
| Content | The textual content of the document to index. Required in single document mode. |
| Metadata | Metadata associated with the document as a JSON object. Used in single document mode. |
| Document ID Field | Field name in input items containing the document UUID. Used in multiple documents mode. |
| Content Field | Field name in input items containing the document content. Required in multiple documents mode. |
| Metadata Field | Field name in input items containing the metadata object. Used in multiple documents mode. |
Output
JSON
json- Response from the Peerag RAG system after indexing the document(s). Contains details about the indexing operation.
Dependencies
- Peerag API with credentials including a base URL for authentication and access.
Troubleshooting
- Invalid JSON in the metadata field will cause an error. Ensure the metadata JSON is correctly formatted.
- If document content is missing or empty, the indexing will fail. Provide valid content in the specified field.
- If the Peerag API credentials are incorrect or the base URL is unreachable, the HTTP request will fail. Verify credentials and network connectivity.
Links
- Peerag API Documentation - Official documentation for the Peerag API used for indexing documents.