Skip to content

Commit 7cb875b

Browse files
Upgrade to readthedocs.org documentation (#256)
This PR moves the documentation hosting to RTD!
1 parent 6379951 commit 7cb875b

30 files changed

+109
-1339
lines changed

.docs_static/.nojekyll

Whitespace-only changes.

.docs_static/CNAME

-1
This file was deleted.

.docs_static/index.html

-1
This file was deleted.

.github/workflows/run_tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ jobs:
9393
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
9494
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
9595
run: |
96-
cd docs/ && poetry run treon -v --exclude="./examples/openai_qna.ipynb"
96+
cd docs/ && poetry run treon -v
9797
9898
- name: Publish coverage results
9999
uses: codecov/codecov-action@v4

.readthedocs.yaml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Read the Docs configuration file
2+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
3+
4+
# Required
5+
version: 2
6+
7+
# Set the OS, Python version, and other tools you might need
8+
build:
9+
os: ubuntu-24.04
10+
tools:
11+
python: "3.11"
12+
jobs:
13+
post_create_environment:
14+
# Install poetry
15+
- python -m pip install poetry==1.8.3
16+
post_install:
17+
# Install dependencies
18+
- VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH poetry install --with docs
19+
20+
# Build documentation in the "docs/" directory with Sphinx
21+
sphinx:
22+
configuration: docs/conf.py
23+
24+
formats:
25+
- pdf
26+
- epub

CONTRIBUTING.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,13 @@ poetry run serve-docs
8787

8888
### Getting Redis
8989

90-
In order for your applications to use RedisVL, you must have [Redis](https://redis.io) accessible with Search & Query features enabled on [Redis Cloud](https://redis.com/try-free) or locally in docker with [Redis Stack](https://redis.io/docs/getting-started/install-stack/docker/):
90+
In order for your applications to use RedisVL, you must have [Redis](https://redis.io) accessible with Search & Query features enabled on [Redis Cloud](https://redis.io/cloud/) or locally in docker with [Redis Stack](https://redis.io/docs/latest/operate/oss_and_stack/install/install-stack/docker/):
9191

9292
```bash
9393
docker run -d --name redis-stack -p 6379:6379 -p 8001:8001 redis/redis-stack:latest
9494
```
9595

96-
This will also spin up the [FREE RedisInsight GUI](https://redis.com/redis-enterprise/redis-insight/) at `http://localhost:8001`.
96+
This will also spin up the [FREE RedisInsight GUI](https://redis.io/insight/) at `http://localhost:8001`.
9797

9898
## How to Report a Bug
9999

README.md

+33-33
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<div align="center">
2222
<div display="inline-block">
2323
<a href="https://github.com/redis/redis-vl-python"><b>Home</b></a>&nbsp;&nbsp;&nbsp;
24-
<a href="https://www.redisvl.com"><b>Documentation</b></a>&nbsp;&nbsp;&nbsp;
24+
<a href="https://docs.redisvl.com"><b>Documentation</b></a>&nbsp;&nbsp;&nbsp;
2525
<a href="https://github.com/redis-developer/redis-ai-resources"><b>Recipes</b></a>&nbsp;&nbsp;&nbsp;
2626
</div>
2727
<br />
@@ -49,7 +49,7 @@ Install `redisvl` into your Python (>=3.8) environment using `pip`:
4949
```bash
5050
pip install redisvl
5151
```
52-
> For more detailed instructions, visit the [installation guide](https://www.redisvl.com/overview/installation.html).
52+
> For more detailed instructions, visit the [installation guide](https://docs.redisvl.com/en/latest/overview/installation.html).
5353
5454
## Setting up Redis
5555

@@ -62,16 +62,16 @@ Choose from multiple Redis deployment options:
6262
docker run -d --name redis-stack -p 6379:6379 -p 8001:8001 redis/redis-stack:latest
6363
```
6464
3. [Redis Enterprise](https://redis.io/enterprise/): Commercial, self-hosted database
65-
4. [Azure Cache for Redis Enterprise](https://learn.microsoft.com/azure/azure-cache-for-redis/quickstart-create-redis-enterprise): Fully managed Redis Enterprise on Azure
65+
4. [Azure Managed Redis](https://azure.microsoft.com/en-us/products/managed-redis): Fully managed Redis Enterprise on Azure
6666

67-
> Enhance your experience and observability with the free [Redis Insight GUI](https://redis.com/redis-enterprise/redis-insight/).
67+
> Enhance your experience and observability with the free [Redis Insight GUI](https://redis.io/insight/).
6868

6969

7070
# Overview
7171

7272

7373
## 🗃️ Redis Index Management
74-
1. [Design a schema for your use case](https://www.redisvl.com/user_guide/getting_started_01.html#define-an-indexschema) that models your dataset with built-in Redis and indexable fields (*e.g. text, tags, numerics, geo, and vectors*). [Load a schema](https://www.redisvl.com/user_guide/getting_started_01.html#example-schema-creation) from a YAML file:
74+
1. [Design a schema for your use case](https://docs.redisvl.com/en/latest/user_guide/getting_started_01.html#define-an-indexschema) that models your dataset with built-in Redis and indexable fields (*e.g. text, tags, numerics, geo, and vectors*). [Load a schema](https://docs.redisvl.com/en/latest/user_guide/getting_started_01.html#example-schema-creation) from a YAML file:
7575
```yaml
7676
index:
7777
name: user-idx
@@ -121,7 +121,7 @@ Choose from multiple Redis deployment options:
121121
})
122122
```
123123

124-
2. [Create a SearchIndex](https://www.redisvl.com/user_guide/getting_started_01.html#create-a-searchindex) class with an input schema and client connection in order to perform admin and search operations on your index in Redis:
124+
2. [Create a SearchIndex](https://docs.redisvl.com/en/latest/user_guide/getting_started_01.html#create-a-searchindex) class with an input schema and client connection in order to perform admin and search operations on your index in Redis:
125125
```python
126126
from redis import Redis
127127
from redisvl.index import SearchIndex
@@ -133,10 +133,10 @@ Choose from multiple Redis deployment options:
133133
# Create the index in Redis
134134
index.create()
135135
```
136-
> Async compliant search index class also available: [AsyncSearchIndex](https://www.redisvl.com/api/searchindex.html#redisvl.index.AsyncSearchIndex).
136+
> Async compliant search index class also available: [AsyncSearchIndex](https://docs.redisvl.com/en/latest/api/searchindex.html#redisvl.index.AsyncSearchIndex).
137137

138-
3. [Load](https://www.redisvl.com/user_guide/getting_started_01.html#load-data-to-searchindex)
139-
and [fetch](https://www.redisvl.com/user_guide/getting_started_01.html#fetch-an-object-from-redis) data to/from your Redis instance:
138+
3. [Load](https://docs.redisvl.com/en/latest/user_guide/getting_started_01.html#load-data-to-searchindex)
139+
and [fetch](https://docs.redisvl.com/en/latest/user_guide/getting_started_01.html#fetch-an-object-from-redis) data to/from your Redis instance:
140140
```python
141141
data = {"user": "john", "credit_score": "high", "embedding": [0.23, 0.49, -0.18, 0.95]}
142142
@@ -151,7 +151,7 @@ and [fetch](https://www.redisvl.com/user_guide/getting_started_01.html#fetch-an-
151151

152152
Define queries and perform advanced searches over your indices, including the combination of vectors, metadata filters, and more.
153153

154-
- [VectorQuery](https://www.redisvl.com/api/query.html#vectorquery) - Flexible vector queries with customizable filters enabling semantic search:
154+
- [VectorQuery](https://docs.redisvl.com/en/latest/api/query.html#vectorquery) - Flexible vector queries with customizable filters enabling semantic search:
155155

156156
```python
157157
from redisvl.query import VectorQuery
@@ -179,24 +179,24 @@ Define queries and perform advanced searches over your indices, including the co
179179
results = index.query(query)
180180
```
181181

182-
- [RangeQuery](https://www.redisvl.com/api/query.html#rangequery) - Vector search within a defined range paired with customizable filters
183-
- [FilterQuery](https://www.redisvl.com/api/query.html#filterquery) - Standard search using filters and the full-text search
184-
- [CountQuery](https://www.redisvl.com/api/query.html#countquery) - Count the number of indexed records given attributes
182+
- [RangeQuery](https://docs.redisvl.com/en/latest/api/query.html#rangequery) - Vector search within a defined range paired with customizable filters
183+
- [FilterQuery](https://docs.redisvl.com/en/latest/api/query.html#filterquery) - Standard search using filters and the full-text search
184+
- [CountQuery](https://docs.redisvl.com/en/latest/api/query.html#countquery) - Count the number of indexed records given attributes
185185

186-
> Read more about building [advanced Redis queries](https://www.redisvl.com/user_guide/hybrid_queries_02.html).
186+
> Read more about building [advanced Redis queries](https://docs.redisvl.com/en/latest/user_guide/hybrid_queries_02.html).
187187

188188

189189
## 🔧 Utilities
190190

191191
### Vectorizers
192192
Integrate with popular embedding providers to greatly simplify the process of vectorizing unstructured data for your index and queries:
193-
- [AzureOpenAI](https://www.redisvl.com/api/vectorizer.html#azureopenaitextvectorizer)
194-
- [Cohere](https://www.redisvl.com/api/vectorizer.html#coheretextvectorizer)
195-
- [Custom](https://www.redisvl.com/api/vectorizer.html#customtextvectorizer)
196-
- [GCP VertexAI](https://www.redisvl.com/api/vectorizer.html#vertexaitextvectorizer)
197-
- [HuggingFace](https://www.redisvl.com/api/vectorizer.html#hftextvectorizer)
198-
- [Mistral](https://www.redisvl.com/api/vectorizer/html#mistralaitextvectorizer)
199-
- [OpenAI](https://www.redisvl.com/api/vectorizer.html#openaitextvectorizer)
193+
- [AzureOpenAI](https://docs.redisvl.com/en/latest/api/vectorizer.html#azureopenaitextvectorizer)
194+
- [Cohere](https://docs.redisvl.com/en/latest/api/vectorizer.html#coheretextvectorizer)
195+
- [Custom](https://docs.redisvl.com/en/latest/api/vectorizer.html#customtextvectorizer)
196+
- [GCP VertexAI](https://docs.redisvl.com/en/latest/api/vectorizer.html#vertexaitextvectorizer)
197+
- [HuggingFace](https://docs.redisvl.com/en/latest/api/vectorizer.html#hftextvectorizer)
198+
- [Mistral](https://docs.redisvl.com/en/latest/api/vectorizer/html#mistralaitextvectorizer)
199+
- [OpenAI](https://docs.redisvl.com/en/latest/api/vectorizer.html#openaitextvectorizer)
200200

201201
```python
202202
from redisvl.utils.vectorize import CohereTextVectorizer
@@ -215,11 +215,11 @@ embeddings = co.embed_many(
215215
)
216216
```
217217

218-
> Learn more about using [vectorizers]((https://www.redisvl.com/user_guide/vectorizers_04.html)) in your embedding workflows.
218+
> Learn more about using [vectorizers]((https://docs.redisvl.com/en/latest/user_guide/vectorizers_04.html)) in your embedding workflows.
219219

220220

221221
### Rerankers
222-
[Integrate with popular reranking providers](https://www.redisvl.com/user_guide/rerankers_06.html) to improve the relevancy of the initial search results from Redis
222+
[Integrate with popular reranking providers](https://docs.redisvl.com/en/latest/user_guide/rerankers_06.html) to improve the relevancy of the initial search results from Redis
223223

224224

225225

@@ -229,7 +229,7 @@ We're excited to announce the support for **RedisVL Extensions**. These modules
229229
*Have an idea for another extension? Open a PR or reach out to us at [email protected]. We're always open to feedback.*
230230
231231
### LLM Semantic Caching
232-
Increase application throughput and reduce the cost of using LLM models in production by leveraging previously generated knowledge with the [`SemanticCache`](https://www.redisvl.com/api/cache.html#semanticcache).
232+
Increase application throughput and reduce the cost of using LLM models in production by leveraging previously generated knowledge with the [`SemanticCache`](https://docs.redisvl.com/en/latest/api/cache.html#semanticcache).
233233
234234
```python
235235
from redisvl.extensions.llmcache import SemanticCache
@@ -256,11 +256,11 @@ print(response[0]["response"])
256256
>>> Paris
257257
```
258258
259-
> Learn more about [semantic caching]((https://www.redisvl.com/user_guide/llmcache_03.html)) for LLMs.
259+
> Learn more about [semantic caching]((https://docs.redisvl.com/en/latest/user_guide/llmcache_03.html)) for LLMs.
260260
261261
### LLM Session Management
262262
263-
Improve personalization and accuracy of LLM responses by providing user chat history as context. Manage access to the session data using recency or relevancy, *powered by vector search* with the [`SemanticSessionManager`](https://www.redisvl.com/api/session_manager.html).
263+
Improve personalization and accuracy of LLM responses by providing user chat history as context. Manage access to the session data using recency or relevancy, *powered by vector search* with the [`SemanticSessionManager`](https://docs.redisvl.com/en/latest/api/session_manager.html).
264264
265265
```python
266266
from redisvl.extensions.session_manager import SemanticSessionManager
@@ -292,7 +292,7 @@ session.get_relevant("weather", top_k=1)
292292
```stdout
293293
>>> [{"role": "user", "content": "what is the weather going to be today?"}]
294294
```
295-
> Learn more about [LLM session management]((https://www.redisvl.com/user_guide/session_manager_07.html)).
295+
> Learn more about [LLM session management]((https://docs.redisvl.com/en/latest/user_guide/session_manager_07.html)).
296296
297297
298298
### LLM Semantic Routing
@@ -329,7 +329,7 @@ router("Hi, good morning")
329329
```stdout
330330
>>> RouteMatch(name='greeting', distance=0.273891836405)
331331
```
332-
> Learn more about [semantic routing](https://www.redisvl.com/user_guide/semantic_router_08.html).
332+
> Learn more about [semantic routing](https://docs.redisvl.com/en/latest/user_guide/semantic_router_08.html).
333333
334334
## 🖥️ Command Line Interface
335335
Create, destroy, and manage Redis index configurations from a purpose-built CLI interface: `rvl`.
@@ -345,7 +345,7 @@ Commands:
345345
stats Obtain statistics about an index
346346
```
347347
348-
> Read more about [using the CLI](https://www.redisvl.com/user_guide/cli.html).
348+
> Read more about [using the CLI](https://docs.redisvl.com/en/latest/user_guide/cli.html).
349349
350350
## 🚀 Why RedisVL?
351351
@@ -359,9 +359,9 @@ The Redis Vector Library bridges the gap between the AI-native developer ecosyst
359359
## 😁 Helpful Links
360360

361361
For additional help, check out the following resources:
362-
- [Getting Started Guide](https://www.redisvl.com/user_guide/getting_started_01.html)
363-
- [API Reference](https://www.redisvl.com/api/index.html)
364-
- [Example Gallery](https://www.redisvl.com/examples/index.html)
362+
- [Getting Started Guide](https://docs.redisvl.com/en/latest/user_guide/getting_started_01.html)
363+
- [API Reference](https://docs.redisvl.com/en/latest/api/index.html)
364+
- [Example Gallery](https://docs.redisvl.com/en/latest/examples/index.html)
365365
- [Redis AI Recipes](https://github.com/redis-developer/redis-ai-resources)
366366
- [Official Redis Vector API Docs](https://redis.io/docs/interact/search-and-query/advanced-concepts/vectors/)
367367

@@ -371,4 +371,4 @@ For additional help, check out the following resources:
371371
Please help us by contributing PRs, opening GitHub issues for bugs or new feature ideas, improving documentation, or increasing test coverage. [Read more about how to contribute!](CONTRIBUTING.md)
372372

373373
## 🚧 Maintenance
374-
This project is supported by [Redis, Inc](https://redis.com) on a good faith effort basis. To report bugs, request features, or receive assistance, please [file an issue](https://github.com/redis/redis-vl-python/issues).
374+
This project is supported by [Redis, Inc](https://redis.io) on a good faith effort basis. To report bugs, request features, or receive assistance, please [file an issue](https://github.com/redis/redis-vl-python/issues).
-167 KB
Binary file not shown.
-351 KB
Binary file not shown.
-93.1 KB
Binary file not shown.
-118 KB
Binary file not shown.
Binary file not shown.

docs/_static/gallery.yaml

+8-12
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
1-
21
- title: Arxiv Paper Search
3-
website: https://docsearch.redisvl.com
4-
img-bottom: ../_static/gallery-images/arxiv-search.png
2+
website: https://github.com/redis-developer/redis-arxiv-search
3+
- title: eCommerce Search
4+
website: https://github.com/redis-developer/redis-product-search
55
- title: Real-Time Embeddings with Redis and Bytewax
66
website: https://github.com/awmatheson/real-time-embeddings
7-
img-bottom: ../_static/gallery-images/bytewax-redis.png
8-
- title: Question and Answer with OpenAI
9-
website: https://www.redisvl.com/docs/html/examples/openai_qna.html
10-
img-bottom: ../_static/gallery-images/RedisOpenAI-QnA.png
7+
- title: Redis RAG Workbench
8+
website: https://github.com/redis-developer/redis-rag-workbench
119
- title: LLM Recommender for Hotels
12-
website: https://github.com/RedisVentures/LLM-Recommender
13-
img-bottom: ../_static/gallery-images/hotel-recommender.png
14-
- title: Chat YOUR PDF
15-
website: https://github.com/RedisVentures/gcp-redis-llm-stack/tree/main/examples/chat-your-pdf
16-
img-bottom: ../_static/gallery-images/chat-your-pdf.png
10+
website: https://github.com/redis-applied-ai/LLM-Recommender
11+
- title: Agentic RAG
12+
website: https://github.com/redis-developer/agentic-rag

docs/_static/js/sidebar.js

-71
This file was deleted.

0 commit comments

Comments
 (0)