|
ForestHub SDK 0.1.0
C++14 LLM SDK for PC and embedded platforms
|
Retriever implementation that queries the ForestHub backend via HTTP. More...
#include <retriever.hpp>
Public Member Functions | |
| RemoteRetriever (const config::ProviderConfig &cfg, std::shared_ptr< core::HttpClient > http_client) | |
| std::shared_ptr< QueryResponse > | Query (const QueryRequest &req) override |
| Query for similar document chunks. | |
Retriever implementation that queries the ForestHub backend via HTTP.
Sends POST requests to /rag/query with Device-Key authentication. Reuses the same HttpClient and ProviderConfig as ForestHub LLM providers.
| foresthub::rag::remote::RemoteRetriever::RemoteRetriever | ( | const config::ProviderConfig & | cfg, |
| std::shared_ptr< core::HttpClient > | http_client ) |
| cfg | Provider config (api_key used as Device-Key, base_url as backend URL). |
| http_client | Shared HTTP client for network requests. |
|
overridevirtual |
Query for similar document chunks.
| req | Query parameters (collection, query text, result count). |
Implements foresthub::rag::Retriever.