Overview

The Research AI Block utilizes advanced AI capabilities to perform intelligent searches and research across multiple document stores. This block can search through public databases, private collections, or a combination of both, providing powerful and flexible research capabilities for various use cases.
Research AI Block ScreenshotResearch AI Block Screenshot

Inputs

Question
string | chat-message | chat-message[] | string[]
required
The question or questions to research. Required. This guides the AI in conducting the research. Can be provided as a string, chat message, array of chat messages, or array of strings.

Outputs

Question
string
The question that was researched.
Answer
string
The answer to the research question.
Sources
object[]
The cited sources supporting the response.
All
string
A combined output containing the question, answer and discovered sources.
Duration
number
The time in milliseconds that the block took to execute.

Editor Settings

Document Store
string[]
Select up to 5 document stores to search over. The available options are dynamically populated based on your configured document stores.
Mode
string
default:"OR"
How to combine the search results across multiple document stores:
  • OR: Routes to the most relevant store
  • AND: Combines results from all stores
A DocumentStoreProvider must be configured to use this block.

Error Handling

The block will retry failed attempts up to 3 times with exponential backoff:
  • Minimum retry delay: 500ms
  • Maximum retry delay: 5000ms
  • Retry factor: 2.5x
  • Includes randomization
  • Maximum retry time: 5 minutes
Error messages will be logged for:
  • No document stores selected
  • Invalid document store IDs
  • Missing DocumentStoreProvider configuration
  • API rate limits (will retry)
  • API timeouts (will retry)
  • Other API errors
Always verify the accuracy and relevance of the research results, especially when using them for critical decision-making or legal purposes.

FAQ

See Also