mirror of
https://github.com/vxcontrol/langchaingo.git
synced 2026-07-21 17:05:31 -04:00
6cfe92cfda
Include score field in document type to provide more context about the accuracy of results returned by similaritysearch
9 lines
172 B
Go
9 lines
172 B
Go
package schema
|
|
|
|
// Document is the interface for interacting with a document.
|
|
type Document struct {
|
|
PageContent string
|
|
Metadata map[string]any
|
|
Score float32
|
|
}
|