Migrate knowledge core service to ref-backed Effect state

This commit is contained in:
elpresidank 2026-06-02 01:07:12 -05:00
parent 5979d38b99
commit 0da0df81c4
5 changed files with 976 additions and 642 deletions

View file

@ -381,7 +381,9 @@ export const KnowledgeRequest = S.Struct({
collection: S.optionalKey(S.String),
triples: OptionalMutableArray(Triple),
graphEmbeddings: OptionalMutableArray(GraphEmbedding),
"graph-embeddings": OptionalMutableArray(GraphEmbedding),
documentEmbeddings: S.optionalKey(DocumentEmbeddingsCore),
"document-embeddings": S.optionalKey(DocumentEmbeddingsCore),
});
export type KnowledgeRequest = typeof KnowledgeRequest.Type;
@ -391,7 +393,9 @@ export const KnowledgeResponse = S.Struct({
eos: S.optionalKey(S.Boolean),
triples: OptionalMutableArray(Triple),
graphEmbeddings: OptionalMutableArray(GraphEmbedding),
"graph-embeddings": OptionalMutableArray(GraphEmbedding),
documentEmbeddings: S.optionalKey(DocumentEmbeddingsCore),
"document-embeddings": S.optionalKey(DocumentEmbeddingsCore),
});
export type KnowledgeResponse = typeof KnowledgeResponse.Type;