Package com.tnsai.rag
Interface ChatKnowledgeResolver
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Optional bridge from a canonical source configuration to the chat-level
KnowledgeBase contract.- Since:
- 0.13.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<ChatKnowledgeResolver> find()Discovers the optional runtime bridge.resolve(KnowledgeSourceConfig source) Resolves one source declaration into the chat knowledge contract.
-
Method Details
-
resolve
Resolves one source declaration into the chat knowledge contract.- Parameters:
source- canonical source declaration- Returns:
- populated knowledge base
-
find
Discovers the optional runtime bridge.- Returns:
- the first installed bridge, if present
-