The gateway embeds the documents llmgw-kb sends as text
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
01ad8c9207
commit
cacaa35c3f
11 files changed
+350
-27
No files matched your search
@@ -63,6 +63,8 @@ type Collection struct {
|
||||
EmbedModel string `json:"embed_model"`
|
||||
Dims int `json:"dims"`
|
||||
Writable bool `json:"writable"`
|
||||
// ServerEmbeds is a gateway that embeds a document sent as text alone.
|
||||
ServerEmbeds bool `json:"server_embeds"`
|
||||
}
|
||||
|
||||
// RemoteDoc is a document the collection holds.
|
||||
@@ -82,8 +84,9 @@ type Manifest struct {
|
||||
|
||||
// ChunkOut is one chunk as sent.
|
||||
type ChunkOut struct {
|
||||
Text string `json:"text"`
|
||||
Embedding []float32 `json:"embedding"`
|
||||
Text string `json:"text"`
|
||||
// Embedding is empty when the gateway embeds the chunk.
|
||||
Embedding []float32 `json:"embedding,omitempty"`
|
||||
}
|
||||
|
||||
// DocOut is one document as sent.
|
||||
|
||||
Reference in new issue
Block a user