Slot: k
Top-k retrieval depth.
URI: dspy:k
Applicable Classes
| Name | Description | Modifies Slot |
|---|---|---|
| Retriever | Abstract retrieval module | no |
| Retrieve | Generic retrieve module that calls ``dspy | no |
| Embeddings | Embedding-based nearest-neighbour retriever (``dspy | no |
| EmbeddingsWithScores | Embeddings retriever that also returns similarity scores (``dspy | no |
| ColBERTv2 | Remote ColBERTv2 retrieval server (``dspy | no |
Properties
Type and Range
| Property | Value |
|---|---|
| Range | Integer |
| Domain Of | Retriever |
Cardinality and Requirements
| Property | Value |
|---|---|
| ### Value Constraints |
| Property | Value |
|---|---|
| Minimum Value | 1 |
Identifier and Mapping Information
Schema Source
- from schema: https://w3id.org/lmodel/dspy
Mappings
| Mapping Type | Mapped Value |
|---|---|
| self | dspy:k |
| native | dspy:k |
LinkML Source
name: k
description: Top-k retrieval depth.
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
domain_of:
- Retriever
range: integer
minimum_value: 1