ForestHub SDK 0.1.0
C++14 LLM SDK for PC and embedded platforms
Loading...
Searching...
No Matches
retriever.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: AGPL-3.0-only
2// Copyright (c) 2026 ForestHub. All rights reserved.
3// For commercial licensing, visit https://github.com/ForestHubAI/fh-sdk
4
5#ifndef FORESTHUB_RAG_RETRIEVER_HPP
6#define FORESTHUB_RAG_RETRIEVER_HPP
7
10
11#include <memory>
12
14
15namespace foresthub {
16namespace rag {
17
21class Retriever {
22public:
23 virtual ~Retriever() = default;
24
28 virtual std::shared_ptr<QueryResponse> Query(const QueryRequest& req) = 0;
29};
30
31} // namespace rag
32} // namespace foresthub
33
34#endif // FORESTHUB_RAG_RETRIEVER_HPP
Abstract interface for document retrieval.
Definition retriever.hpp:21
virtual std::shared_ptr< QueryResponse > Query(const QueryRequest &req)=0
Query for similar document chunks.
Retrieval-augmented generation: retriever interface and query types.
Top-level namespace for the ForestHub SDK.
RAG query and response types.
Request parameters for a RAG similarity query.
Definition types.hpp:18