mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-03 18:00:36 +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>
88 lines
2.5 KiB
Text
88 lines
2.5 KiB
Text
---
|
|
description: |
|
|
[Weaviate](https://weaviate.io/) is a vector database provider for Llama Stack.
|
|
It allows you to store and query vectors directly within a Weaviate database.
|
|
That means you're not limited to storing vectors in memory or in a separate service.
|
|
|
|
## Features
|
|
Weaviate supports:
|
|
- Store embeddings and their metadata
|
|
- Vector search
|
|
- Full-text search
|
|
- Hybrid search
|
|
- Document storage
|
|
- Metadata filtering
|
|
- Multi-modal retrieval
|
|
|
|
|
|
## Usage
|
|
|
|
To use Weaviate in your Llama Stack project, follow these steps:
|
|
|
|
1. Install the necessary dependencies.
|
|
2. Configure your Llama Stack project to use chroma.
|
|
3. Start storing and querying vectors.
|
|
|
|
## Installation
|
|
|
|
To install Weaviate see the [Weaviate quickstart documentation](https://weaviate.io/developers/weaviate/quickstart).
|
|
|
|
## Documentation
|
|
See [Weaviate's documentation](https://weaviate.io/developers/weaviate) for more details about Weaviate in general.
|
|
sidebar_label: Remote - Weaviate
|
|
title: remote::weaviate
|
|
---
|
|
|
|
# remote::weaviate
|
|
|
|
## Description
|
|
|
|
|
|
[Weaviate](https://weaviate.io/) is a vector database provider for Llama Stack.
|
|
It allows you to store and query vectors directly within a Weaviate database.
|
|
That means you're not limited to storing vectors in memory or in a separate service.
|
|
|
|
## Features
|
|
Weaviate supports:
|
|
- Store embeddings and their metadata
|
|
- Vector search
|
|
- Full-text search
|
|
- Hybrid search
|
|
- Document storage
|
|
- Metadata filtering
|
|
- Multi-modal retrieval
|
|
|
|
|
|
## Usage
|
|
|
|
To use Weaviate in your Llama Stack project, follow these steps:
|
|
|
|
1. Install the necessary dependencies.
|
|
2. Configure your Llama Stack project to use chroma.
|
|
3. Start storing and querying vectors.
|
|
|
|
## Installation
|
|
|
|
To install Weaviate see the [Weaviate quickstart documentation](https://weaviate.io/developers/weaviate/quickstart).
|
|
|
|
## Documentation
|
|
See [Weaviate's documentation](https://weaviate.io/developers/weaviate) for more details about Weaviate in general.
|
|
|
|
|
|
## Configuration
|
|
|
|
| Field | Type | Required | Default | Description |
|
|
|-------|------|----------|---------|-------------|
|
|
| `weaviate_api_key` | `str \| None` | No | | The API key for the Weaviate instance |
|
|
| `weaviate_cluster_url` | `str \| None` | No | localhost:8080 | The URL of the Weaviate cluster |
|
|
| `persistence` | `KVStoreReference \| None` | No | | Config for KV store backend (SQLite only for now) |
|
|
|
|
## Sample Configuration
|
|
|
|
```yaml
|
|
weaviate_api_key: null
|
|
weaviate_cluster_url: ${env.WEAVIATE_CLUSTER_URL:=localhost:8080}
|
|
persistence:
|
|
namespace: vector_io::weaviate
|
|
backend: kv_default
|
|
```
|