Skip to content

Commit 6f3bce8

Browse files
Restore rac_rag.h accidentally deleted in PR #471 merge
The VAD PR branch was based on a commit predating #447 (RAG+CPP_optis) and so did not have rac_rag.h. The merge preserved the deletion but rac_rag_register.cpp still includes this header, breaking the build. Restoring the file verbatim from main. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 85d1f98 commit 6f3bce8

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

  • sdk/runanywhere-commons/include/rac/features/rag
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
/**
2+
* @file rac_rag.h
3+
* @brief RunAnywhere Commons - RAG Pipeline Public API
4+
*
5+
* Registration and control functions for the RAG pipeline module.
6+
*/
7+
8+
#ifndef RAC_RAG_H
9+
#define RAC_RAG_H
10+
11+
#include "rac/core/rac_types.h"
12+
#include "rac/features/rag/rac_rag_pipeline.h"
13+
14+
#ifdef __cplusplus
15+
extern "C" {
16+
#endif
17+
18+
/**
19+
* @brief Register the RAG pipeline module
20+
*
21+
* Must be called before using RAG functionality.
22+
* Also registers the ONNX embeddings service provider if available.
23+
*
24+
* @return RAC_SUCCESS on success, error code otherwise
25+
*/
26+
RAC_API rac_result_t rac_backend_rag_register(void);
27+
28+
/**
29+
* @brief Unregister the RAG pipeline module
30+
*
31+
* @return RAC_SUCCESS on success, error code otherwise
32+
*/
33+
RAC_API rac_result_t rac_backend_rag_unregister(void);
34+
35+
#ifdef __cplusplus
36+
}
37+
#endif
38+
39+
#endif // RAC_RAG_H

0 commit comments

Comments
 (0)