Skip to main content

new

Method
This is a method of the VectorRecord class in the knowledge module.
Create a new vector record

Signature

def new(id: impl Into<String>, text: impl Into<String>, embedding: Vec<f32>) -> Self

Parameters

id
impl Into<String>
required
No description available.
text
impl Into<String>
required
No description available.
embedding
Vec<f32>
required
No description available.

Returns

Returns
Self
The result of the operation.