MCPcopy Create free account
hub / github.com/RunanywhereAI/RCLI / rcli_rag_clear

Function rcli_rag_clear

src/api/rcli_api.cpp:2639–2649  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2637}
2638
2639void rcli_rag_clear(RCLIHandle handle) {
2640 if (!handle) return;
2641 auto* engine = static_cast<RCLIEngine*>(handle);
2642 std::lock_guard<std::mutex> lock(engine->mutex);
2643 engine->rag_retriever.reset();
2644 engine->rag_embedding.reset();
2645 engine->rag_index_path.clear();
2646 engine->rag_ready = false;
2647 engine->last_rag_result.clear();
2648 LOG_DEBUG("RCLI", "RAG cleared");
2649}
2650
2651// =============================================================================
2652// Actions (macOS only)

Callers 2

rag_execute_selectedMethod · 0.85
process_inputMethod · 0.85

Calls 2

clearMethod · 0.80
resetMethod · 0.45

Tested by

no test coverage detected