Skip to content

Commit 23f7e97

Browse files
Update docs landing page and docstrings (#47)
- Add missing punctuation and fix spelling and phrasing. - Add back section for vectorizers.
1 parent 6edc352 commit 23f7e97

File tree

10 files changed

+121
-81
lines changed

10 files changed

+121
-81
lines changed

.github/workflows/run_tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ jobs:
3333
pip install .[dev,all]
3434
- name: Start Redis
3535
run: |
36-
REDIS_ADDRESS=redis://localhost:6379
37-
echo REDIS_ADDRESS=$REDIS_ADDRESS >> $GITHUB_ENV
36+
REDIS_URL=redis://localhost:6379
37+
echo REDIS_URL=$REDIS_URL >> $GITHUB_ENV
3838
- name: Run tests
3939
env:
4040
OPENAI_API_KEY: ${{ secrets.OPENAI_KEY }}

conftest.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
get_async_redis_connection,
77
get_redis_connection
88
)
9-
REDIS_ADDRESS = os.getenv("REDIS_ADDRESS", "redis://localhost:6379")
9+
REDIS_URL = os.getenv("REDIS_URL", "redis://localhost:6379")
1010

11-
aredis = get_async_redis_connection(REDIS_ADDRESS)
12-
redis = get_redis_connection(REDIS_ADDRESS)
11+
aredis = get_async_redis_connection(REDIS_URL)
12+
redis = get_redis_connection(REDIS_URL)
1313

1414
@pytest.fixture()
1515
def redis_url():
16-
return REDIS_ADDRESS
16+
return REDIS_URL
1717

1818
@pytest.fixture
1919
def async_client():

docs/api/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ myst:
1414
searchindex
1515
query
1616
filter
17+
vectorizer
1718
cache
1819
```
1920

docs/api/vectorizer.rst

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
2+
*****
3+
Vectorizer
4+
*****
5+
6+
HFTextVectorizer
7+
===========
8+
9+
.. _hftextvectorizer_api:
10+
11+
.. currentmodule:: redisvl.vectorize.text.huggingface
12+
13+
.. autosummary::
14+
15+
HFTextVectorizer.__init__
16+
HFTextVectorizer.embed
17+
HFTextVectorizer.embed_many
18+
19+
.. autoclass:: HFTextVectorizer
20+
:show-inheritance:
21+
:inherited-members:
22+
:members:
23+
24+
25+
OpenAITextVectorizer
26+
================
27+
28+
.. _openaitextvectorizer_api:
29+
30+
.. currentmodule:: redisvl.vectorize.text.openai
31+
32+
.. autosummary::
33+
34+
OpenAITextVectorizer.__init__
35+
OpenAITextVectorizer.embed
36+
OpenAITextVectorizer.embed_many
37+
OpenAITextVectorizer.aembed
38+
OpenAITextVectorizer.aembed_many
39+
40+
.. autoclass:: OpenAITextVectorizer
41+
:show-inheritance:
42+
:inherited-members:
43+
:members:
44+
45+
46+

docs/index.md

Lines changed: 11 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,23 @@ to supercharge your application!
1717
:grid-columns: 1 2 2 3
1818
1919
- header: "{fab}`bootstrap;pst-color-primary` Index Management"
20-
content: "Manipulate Redis index in Python for from a CLI."
21-
- header: "{fas}`bolt;pst-color-primary` Vector Search"
22-
content: "Simple vector search capabilities supporting synchronous and asyncronous search."
20+
content: "Manipulate Redis search indices in Python or from CLI."
21+
- header: "{fas}`bolt;pst-color-primary` Vector Similarity Search"
22+
content: "Perform powerful vector similarity search with filtering support."
2323
- header: "{fas}`circle-half-stroke;pst-color-primary` Embedding Creation"
24-
content: "User OpenAI or any of the other supported vectorizers to create embeddings"
24+
content: "Use OpenAI or any of the other supported vectorizers to create embeddings."
2525
- header: "{fas}`palette;pst-color-primary` CLI"
26-
content: "Command line interface for RedisVL makes interacting with Redis as a vector database easy."
26+
content: "Interact with RedisVL using a Command line interface (CLI) for ease of use."
2727
- header: "{fab}`python;pst-color-primary` Semantic Caching"
28-
content: "Use RedisVL to cache the results of your LLM models increasing QPS and decreasing cost."
28+
content: "Use RedisVL to cache LLM results, increasing QPS and decreasing cost."
2929
- header: "{fas}`lightbulb;pst-color-primary` Example Gallery"
30-
content: "See our gallery of projects that use RedisVL"
30+
content: "Explore our gallery of examples to get started."
3131
link: "examples/index"
3232
```
3333

34+
## Concepts (Coming Soon)
35+
36+
Glossary of AI terminology and concepts related to vector databases.
3437

3538

3639
## User Guide
@@ -65,19 +68,9 @@ The redisVL API
6568
API <api/index>
6669
```
6770

68-
## Developer
69-
70-
How to contribute
71-
72-
```{toctree}
73-
:maxdepth: 2
74-
75-
developer/index
76-
```
77-
7871

7972
```{toctree}
8073
:hidden:
8174
82-
Changelog <https://github.com/pydata/pydata-sphinx-theme/releases>
75+
Changelog <https://github.com/RedisVentures/redisvl/releases>
8376
```

redisvl/cli/index.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def _connect_to_index(self, args: Namespace) -> SearchIndex:
111111
conn = get_redis_connection(url=url)
112112
except ValueError:
113113
logger.error(
114-
"Must set REDIS_ADDRESS environment variable or provide host and port"
114+
"Must set REDIS_URL environment variable or provide host and port"
115115
)
116116
exit(0)
117117

redisvl/cli/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44

55
def create_redis_url(args: Namespace) -> str:
6-
env_address = os.getenv("REDIS_ADDRESS")
6+
env_address = os.getenv("REDIS_URL")
77
if env_address:
88
return env_address
99
else:

0 commit comments

Comments
 (0)