ForestHub SDK 0.1.0
C++14 LLM SDK for PC and embedded platforms
Loading...
Searching...
No Matches
foresthub::rag::Retriever Class Referenceabstract

Abstract interface for document retrieval. More...

#include <retriever.hpp>

Inheritance diagram for foresthub::rag::Retriever:
foresthub::rag::remote::RemoteRetriever

Public Member Functions

virtual std::shared_ptr< QueryResponseQuery (const QueryRequest &req)=0
 Query for similar document chunks.

Detailed Description

Abstract interface for document retrieval.

Implementations provide different backends (remote API, local vector DB).

Member Function Documentation

◆ Query()

virtual std::shared_ptr< QueryResponse > foresthub::rag::Retriever::Query ( const QueryRequest & req)
pure virtual

Query for similar document chunks.

Parameters
reqQuery parameters (collection, query text, result count).
Returns
Query response with matching chunks, or nullptr on error.

Implemented in foresthub::rag::remote::RemoteRetriever.


The documentation for this class was generated from the following file: