Skip to content

Commit 4660ff0

Browse files
authored
Feature/auto testing (#21)
first testing script
1 parent 0c2bd40 commit 4660ff0

File tree

12 files changed

+1980
-630
lines changed

12 files changed

+1980
-630
lines changed

.github/workflows/test.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Test Suite
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
push:
8+
branches:
9+
- main
10+
11+
jobs:
12+
test:
13+
name: Python ${{ matrix.python-version }} - ${{ matrix.connection }} [redis-stack ${{matrix.redis-stack-version}}]
14+
runs-on: ubuntu-latest
15+
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
python-version: [3.11]
20+
connection: ['plain']
21+
redis-stack-version: ['latest']
22+
23+
services:
24+
redis:
25+
image: redis/redis-stack-server:${{matrix.redis-stack-version}}
26+
ports:
27+
- 6379:6379
28+
29+
steps:
30+
- uses: actions/checkout@v2
31+
- name: Set up Python ${{ matrix.python-version }}
32+
uses: actions/setup-python@v4
33+
with:
34+
python-version: ${{ matrix.python-version }}
35+
cache: 'pip'
36+
37+
- name: Install dependencies
38+
run: |
39+
pip install -r requirements.txt
40+
41+
- name: Set Redis version
42+
run: |
43+
echo "REDIS_VERSION=${{ matrix.redis-stack-version }}" >> $GITHUB_ENV
44+
45+
- name: Run notebooks
46+
if: matrix.connection == 'plain' && matrix.redis-stack-version == 'latest'
47+
env:
48+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
49+
LLAMA_CLOUD_API_KEY: ${{ secrets.LLAMA_CLOUD_API_KEY }}
50+
GCP_REGION: ${{ secrets.GCP_REGION }}
51+
GCP_PROJECT_ID: ${{ secrets.GCP_PROJECT_ID }}
52+
# COHERE_API_KEY: ${{ secrets.COHERE_API_KEY }}
53+
# AZURE_OPENAI_API_KEY: ${{secrets.AZURE_OPENAI_API_KEY}}
54+
# AZURE_OPENAI_ENDPOINT: ${{secrets.AZURE_OPENAI_ENDPOINT}}
55+
# AZURE_OPENAI_DEPLOYMENT_NAME: ${{secrets.AZURE_OPENAI_DEPLOYMENT_NAME}}
56+
# OPENAI_API_VERSION: ${{secrets.OPENAI_API_VERSION}}
57+
run: |
58+
pytest --nbval-lax python-recipes/RAG/00_intro_redispy.ipynb python-recipes/RAG/01_redisvl.ipynb python-recipes/RAG/02_langchain.ipynb python-recipes/RAG/03_llamaindex.ipynb python-recipes/RAG/04_advanced_redisvl.ipynb

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ To get started with RAG, either from scratch or using a popular framework like L
6060
| [/01_redisvl](python-recipes/RAG/01_redisvl.ipynb) | RAG from scratch with the Redis Vector Library |
6161
| [/02_langchain](python-recipes/RAG/02_langchain.ipynb) | RAG using Redis and LangChain |
6262
| [/03_llamaindex](python-recipes/RAG/03_llamaindex.ipynb) | RAG using Redis and LlamaIndex |
63+
| [/04_advanced_redisvl](python-recipes/RAG//04_advanced_redisvl.ipynb) | Advanced RAG with redisvl |
64+
| [/05_nvidia_ai_rag_redis](python-recipes/RAG/05_nvidia_ai_rag_redis.ipynb) | RAG using Redis and Nvidia |
6365

6466

6567
## Semantic Cache
@@ -85,7 +87,7 @@ Within [this repository](https://github.com/redis-developer/redis-nvidia-recsys)
8587

8688
# Integrations/Tools
8789
- [⭐ RedisVL](https://github.com/redis/redis-vl-python) - a dedicated Python client lib for Redis as a Vector DB.
88-
- [⭐ AWS Bedrock][https://redis.io/docs/latest/integrate/amazon-bedrock/]
90+
- [⭐ AWS Bedrock](https://redis.io/docs/latest/integrate/amazon-bedrock/) - Streamlines GenAI deployment by offering foundational models as a unified API.
8991
- [⭐ LangChain Python](https://github.com/langchain-ai/langchain) - popular Python client lib for building LLM applications.
9092
powered by Redis.
9193
- [⭐ LangChain JS](https://github.com/langchain-ai/langchainjs) - popular JS client lib for building LLM applications.

0 commit comments

Comments
 (0)