Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client for reading/writing natural language text and searching for nearest neighbor.
func New ¶
Creates the client for reading/writing natural language text and searching for nearest neighbor.
type Query ¶
type Query struct { K int `json:"k,omitempty"` EfSearch int `json:"efSearch,omitempty"` Distance float32 `json:"distance,omitempty"` Text string `json:"text"` }
Query textual corpus
type Result ¶
type Result struct { Took time.Duration `json:"took,omitempty"` Source optimum.Source `json:"source,omitempty"` Hits []Hit `json:"hits,omitempty"` }
Results from the query
type Sentence ¶
type Sentence struct { // Short text block. Text schemaorg.Text `json:"text,omitempty"` // URL of the original CreativeWork from which this text block is derived. IsPartOf schemaorg.IsPartOf `json:"isPartOf,omitempty"` // Headline(s) of the text block. Headline []schemaorg.Headline `json:"headline,omitempty"` // Relevant Keywords for the text block. Keywords []schemaorg.Keywords `json:"keywords,omitempty"` // External URIs associated with the text block. // // The purpose lacks a defined product type for representing the URI and its // human-readable format. The client selects own format. // // We recommend: // - URIs with Fragments is recommended to represent url and human readable name // <http://example.com/article123#An_Example_Article> // // - Markdown format // [An Example Article](http://example.com/article123) // // - HTML Anchor Tag // <a href="http://example.com/article123">An Example Article</a> // // - URI with Label Convention (RDF-style text) // <http://example.com/article123> "An Example Article" Links []schemaorg.RelatedLink `json:"links,omitempty"` }
Sentence defines textual content
Click to show internal directories.
Click to hide internal directories.