mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-03 01:48:05 +00:00
# What does this PR do? This PR improves type hint cleanup in auto-generated provider documentation by adding regex logic. **Issues Fixed:** - Type hints with missing closing brackets (e.g., `list[str` instead of `list[str]`) - Types showing as `<class 'bool'>`, `<class 'str'>` instead of `bool`, `str` - The multi-line YAML frontmatter in index documentation files wasn't ideal, so we now add the proper `|` character. **Changes:** 1. Replaced string replacement (`.replace`) with regex-based type cleaning to preserve the trailing bracket in case of `list` and `dict`. 2. Adds the `|` character for multi-line YAML descriptions. 3. I have regenerated the docs. However, let me know if that's not needed. ## Test Plan 1. Ran uv run python scripts/provider_codegen.py - successfully regenerated all docs 2. We can see that the updated docs handle correctly type hint cleanup and multi-line yaml descriptions have now the `|` character. ### Note to the reviewer(s) This is my first contribution to your lovely repo! Initially I was going thourgh docs (wanted to use `remote::gemini` as provider) and realized the issue. I've read the [CONTRIBUTING.md](https://github.com/llamastack/llama-stack/blob/main/CONTRIBUTING.md) and decided to open the PR. Let me know if there's anything I did wrong and I'll update my PR! --------- Signed-off-by: thepetk <thepetk@gmail.com> Co-authored-by: Ashwin Bharambe <ashwin.bharambe@gmail.com>
110 lines
3.6 KiB
Text
110 lines
3.6 KiB
Text
---
|
|
description: |
|
|
[Qdrant](https://qdrant.tech/documentation/) is an inline and remote vector database provider for Llama Stack. It
|
|
allows you to store and query vectors directly in memory.
|
|
That means you'll get fast and efficient vector retrieval.
|
|
|
|
> By default, Qdrant stores vectors in RAM, delivering incredibly fast access for datasets that fit comfortably in
|
|
> memory. But when your dataset exceeds RAM capacity, Qdrant offers Memmap as an alternative.
|
|
>
|
|
> \[[An Introduction to Vector Databases](https://qdrant.tech/articles/what-is-a-vector-database/)\]
|
|
|
|
|
|
|
|
## Features
|
|
|
|
- Lightweight and easy to use
|
|
- Fully integrated with Llama Stack
|
|
- Apache 2.0 license terms
|
|
- Store embeddings and their metadata
|
|
- Supports search by
|
|
[Keyword](https://qdrant.tech/articles/qdrant-introduces-full-text-filters-and-indexes/)
|
|
and [Hybrid](https://qdrant.tech/articles/hybrid-search/#building-a-hybrid-search-system-in-qdrant) search
|
|
- [Multilingual and Multimodal retrieval](https://qdrant.tech/documentation/multimodal-search/)
|
|
- [Medatata filtering](https://qdrant.tech/articles/vector-search-filtering/)
|
|
- [GPU support](https://qdrant.tech/documentation/guides/running-with-gpu/)
|
|
|
|
## Usage
|
|
|
|
To use Qdrant in your Llama Stack project, follow these steps:
|
|
|
|
1. Install the necessary dependencies.
|
|
2. Configure your Llama Stack project to use Qdrant.
|
|
3. Start storing and querying vectors.
|
|
|
|
## Installation
|
|
|
|
You can install Qdrant using docker:
|
|
|
|
```bash
|
|
docker pull qdrant/qdrant
|
|
```
|
|
## Documentation
|
|
See the [Qdrant documentation](https://qdrant.tech/documentation/) for more details about Qdrant in general.
|
|
sidebar_label: Qdrant
|
|
title: inline::qdrant
|
|
---
|
|
|
|
# inline::qdrant
|
|
|
|
## Description
|
|
|
|
|
|
[Qdrant](https://qdrant.tech/documentation/) is an inline and remote vector database provider for Llama Stack. It
|
|
allows you to store and query vectors directly in memory.
|
|
That means you'll get fast and efficient vector retrieval.
|
|
|
|
> By default, Qdrant stores vectors in RAM, delivering incredibly fast access for datasets that fit comfortably in
|
|
> memory. But when your dataset exceeds RAM capacity, Qdrant offers Memmap as an alternative.
|
|
>
|
|
> \[[An Introduction to Vector Databases](https://qdrant.tech/articles/what-is-a-vector-database/)\]
|
|
|
|
|
|
|
|
## Features
|
|
|
|
- Lightweight and easy to use
|
|
- Fully integrated with Llama Stack
|
|
- Apache 2.0 license terms
|
|
- Store embeddings and their metadata
|
|
- Supports search by
|
|
[Keyword](https://qdrant.tech/articles/qdrant-introduces-full-text-filters-and-indexes/)
|
|
and [Hybrid](https://qdrant.tech/articles/hybrid-search/#building-a-hybrid-search-system-in-qdrant) search
|
|
- [Multilingual and Multimodal retrieval](https://qdrant.tech/documentation/multimodal-search/)
|
|
- [Medatata filtering](https://qdrant.tech/articles/vector-search-filtering/)
|
|
- [GPU support](https://qdrant.tech/documentation/guides/running-with-gpu/)
|
|
|
|
## Usage
|
|
|
|
To use Qdrant in your Llama Stack project, follow these steps:
|
|
|
|
1. Install the necessary dependencies.
|
|
2. Configure your Llama Stack project to use Qdrant.
|
|
3. Start storing and querying vectors.
|
|
|
|
## Installation
|
|
|
|
You can install Qdrant using docker:
|
|
|
|
```bash
|
|
docker pull qdrant/qdrant
|
|
```
|
|
## Documentation
|
|
See the [Qdrant documentation](https://qdrant.tech/documentation/) for more details about Qdrant in general.
|
|
|
|
|
|
## Configuration
|
|
|
|
| Field | Type | Required | Default | Description |
|
|
|-------|------|----------|---------|-------------|
|
|
| `path` | `str` | No | | |
|
|
| `persistence` | `KVStoreReference` | No | | |
|
|
|
|
## Sample Configuration
|
|
|
|
```yaml
|
|
path: ${env.QDRANT_PATH:=~/.llama/~/.llama/dummy}/qdrant.db
|
|
persistence:
|
|
namespace: vector_io::qdrant
|
|
backend: kv_default
|
|
```
|