> ## 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.

# Similarity Result • Rust AI Agent SDK

> SimilarityResult: Similarity search result.

# SimilarityResult

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

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

Similarity search result.

## Fields

| Name    | Type     | Description                   |
| ------- | -------- | ----------------------------- |
| `text`  | `String` | The text that was compared    |
| `score` | `f32`    | Similarity score (0.0 to 1.0) |
| `index` | `usize`  | Index in the original list    |

## Source

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