> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Vector Record • Rust AI Agent SDK

> VectorRecord: A vector record in the store.

# VectorRecord

> Defined in the [**knowledge**](../modules/knowledge) module.

<Badge color="orange">Rust AI Agent SDK</Badge>

A vector record in the store.

## Fields

| Name        | Type                | Description      |
| ----------- | ------------------- | ---------------- |
| `id`        | `String`            | Record ID        |
| `text`      | `String`            | Text content     |
| `embedding` | `Vec&lt;f32&gt;`    | Embedding vector |
| `metadata`  | `HashMap&lt;String` | Metadata         |

## Methods

### `new`

```rust theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
fn new(id: impl Into<String>, text: impl Into<String>, embedding: Vec<f32>) -> Self
```

Create a new vector record

**Parameters:**

| Name        | Type                      |
| ----------- | ------------------------- |
| `id`        | `impl Into&lt;String&gt;` |
| `text`      | `impl Into&lt;String&gt;` |
| `embedding` | `Vec&lt;f32&gt;`          |

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-rust/praisonai/src/knowledge/mod.rs#L240">
  `praisonai/src/knowledge/mod.rs` at line 240
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Rust Vector Store" icon="database" href="/docs/rust/vector-store" />

  <Card title="Rust Embeddings" icon="code" href="/docs/rust/embeddings" />
</CardGroup>
