Cerca nella Memoria

Cerca nella Memoria

Il componente Cerca nella Memoria consente al tuo flusso di recuperare informazioni dalla memoria archiviata in base alle query degli utenti, supportando flussi di lavoro guidati dalla conoscenza e consapevoli del contesto.

Descrizione del componente

Come funziona il componente Cerca nella Memoria

The Search Memory component is designed to retrieve relevant information from your workflow’s memory storage, often referred to as “Long Term Memory”. It takes a user query and searches stored documents or knowledge resources, returning the most related content. This is particularly useful for AI workflows that need to reference previous information, retrieve supporting documents, or provide context-aware responses.

What Does the Component Do?

  • Purpose: The component searches through stored information in the workflow’s memory using a user-defined query and returns the most relevant pieces of information.
  • Use Case: Useful for chatbots, virtual assistants, or any AI process that requires access to previously stored knowledge or documents to provide informed, contextual answers.

Key Features

  • Flexible Retrieval: Allows you to specify the number of results, set a similarity threshold, and choose how information is aggregated from documents.
  • Customizable Output: You can control what sections/types of content (such as headings or paragraphs) are included in the results.
  • Integration with Tools: The retrieved documents can be formatted as messages, raw documents, or as tools for further use in the workflow.

Settings

Input NameTypeRequiredDescriptionDefault Value
TitlestrNoTitle of the block in the output.Related resources
Result limitintYesNumber of results to return.3
From pointerboolYesIf true, loads from the best matching point in the document; otherwise, loads all.true
Hide resourcesboolNoIf true, hides the retrieved resources from output.false
max_tokensintNoMaximum number of tokens in the output text.3000
strategystrYesStrategy for aggregating content: “Concat documents, fill from first up to tokens limit” or “Include equal size from each document”.Include equal size from each documents
thresholdfloatNoSimilarity threshold for retrieved results (0 to 1).0.8
tool_descriptionstrNoDescription for the tool, used by agents to understand its function.(empty)
tool_namestrNoName for the tool in the agent.(empty)
use_contentmulti-selectNoWhich content types to export (e.g., H1-H6, Paragraph).All (H1-H6, Paragraph)
verboseboolNoWhether to print verbose output for debugging or insights.false

Inputs

Input NameTypeRequiredDescriptionDefault Value
Lookup keystrNoKey used to locate specific information in Long Term Memory.(empty)
Input querystrYesThe search query to use in memory lookup.(empty)

Outputs

The component provides multiple output formats to suit different needs:

  • Documents (Message): The retrieved information as a message, suitable for direct integration into conversational flows.
  • Raw Documents (Document): The unprocessed, raw content of the matched documents for further parsing or analysis.
  • Documents As Tool (Tool): The found documents formatted as a tool, enabling chaining or complex agent workflows.
Output NameTypeDescription
documentsMessageRetrieved content as message(s)
documents_rawDocumentRaw, unprocessed document content
documents_as_toolToolDocuments formatted for use as a tool in agent workflows

Why Use Search Memory?

  • Contextual AI: Enhance your AI’s responses by providing access to previously stored data, making interactions more informed and coherent.
  • Knowledge Management: Efficiently leverage existing documentation or user-provided information without manual searching.
  • Advanced Customization: Fine-tune retrieval strategies and output formats to fit your specific workflow requirements.

Example Scenarios

  • Conversational Agents: Retrieve past interactions or knowledge snippets to maintain context across conversations.
  • Research Assistants: Quickly surface relevant documents or passages from a large knowledge base in response to a query.
  • Automated Decision Making: Provide supporting evidence from stored memory to justify recommendations or actions.

Summary Table

FeatureBenefit
Query-based searchFinds the most relevant stored information for any user query
Output optionsChoose between message, raw document, or tool formats
Custom retrievalControl over number of results, similarity threshold, and content
Integrates with AIIdeal for AI agents needing dynamic access to stored knowledge

This component is a versatile building block for any AI workflow that requires memory search, document retrieval, or contextual augmentation.

Domande frequenti

Cosa fa il componente Cerca nella Memoria?

Cerca nella Memoria consente al tuo flusso di lavoro di recuperare informazioni rilevanti dalla memoria o dai documenti archiviati utilizzando query di input, rendendo le tue soluzioni AI più consapevoli del contesto.

Come seleziona quali documenti restituire?

Recupera i documenti che corrispondono meglio alla query di input, con opzioni per limitare il numero di risultati e controllare il formato o la strategia di output.

Posso controllare il numero di risultati o il tipo di contenuto?

Sì, puoi impostare un limite ai risultati, scegliere quali tipi di contenuti dei documenti includere e regolare le strategie per combinare gli estratti dei documenti.

In che modo Cerca nella Memoria aiuta il mio chatbot o il mio flusso di lavoro?

Consentendo l'accesso a conoscenze precedenti o alla memoria a lungo termine, il tuo bot può fornire risposte più informate, accurate e rilevanti per il contesto.

Cerca nella Memoria è adatto per applicazioni AI avanzate?

Assolutamente. È progettato per essere integrato in flussi complessi dove il recupero di contesto o conoscenza da dati precedenti è cruciale per un'automazione intelligente.

Prova FlowHunt Cerca nella Memoria

Potenzia le tue soluzioni AI integrando la ricerca e il recupero della memoria. Connettiti alla conoscenza a lungo termine e offri risposte più intelligenti.

Scopri di più

Aggiungi alla Memoria
Aggiungi alla Memoria

Aggiungi alla Memoria

Archivia facilmente informazioni importanti nel tuo flusso di lavoro con il componente Aggiungi alla Memoria. Salva senza problemi dati o documenti nella memori...

2 min di lettura
Memory Automation +3
Ricerca nei Documenti JSON
Ricerca nei Documenti JSON

Ricerca nei Documenti JSON

Il componente Ricerca nei Documenti JSON consente potenti funzionalità di ricerca all'interno di file JSON, utilizzando sia la ricerca testuale che espressioni ...

3 min di lettura
Data Automation +4
Cerca email in Gmail
Cerca email in Gmail

Cerca email in Gmail

Il componente Cerca Email ti permette di trovare e recuperare automaticamente email da Gmail in base a criteri specifici. Supporta ricerche filtrate e restituis...

3 min di lettura
Email Gmail +4