package
Version:
v0.0.0-...-8699900
Opens a new window with list of versions in this module.
Published: Apr 28, 2024
License: MIT
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Document struct {
ID string `json:"id,omitempty"`
Content string `json:"content,omitempty"`
Metadata map[string]string `json:"metadata,omitempty"`
}
type Query struct {
Text string `json:"text,omitempty"`
Limit *int `json:"limit,omitempty"`
Distance *float32 `json:"distance,omitempty"`
}
type Result struct {
Document `json:",inline"`
Distance *float32 `json:"distance,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.