File tree Expand file tree Collapse file tree 3 files changed +62
-0
lines changed Expand file tree Collapse file tree 3 files changed +62
-0
lines changed Original file line number Diff line number Diff line change @@ -94,6 +94,11 @@ tasks:
94
94
- func : " fetch repo"
95
95
- func : " execute tests"
96
96
97
+ - name : test-llama-index
98
+ commands :
99
+ - func : " fetch repo"
100
+ - func : " execute tests"
101
+
97
102
buildvariants :
98
103
- name : test-semantic-kernel-python-rhel
99
104
display_name : Semantic-Kernel RHEL Python
@@ -142,3 +147,16 @@ buildvariants:
142
147
- rhel87-small
143
148
tasks :
144
149
- name : test-chatgpt-retrieval-plugin
150
+
151
+ - name : test-llama-index-rhel
152
+ display_name : LlamaIndex RHEL
153
+ expansions :
154
+ DIR : llama_index
155
+ REPO_NAME : llama_index
156
+ # TODO - Update CLONE_URL once pull-request is merged
157
+ CLONE_URL : -b feature/mongodb-datastore --single-branch https://github.com/caseyclements/llama_index.git
158
+ DATABASE : llama_index_test_db
159
+ run_on :
160
+ - rhel87-small
161
+ tasks :
162
+ - name : test-llama-index
Original file line number Diff line number Diff line change
1
+ {
2
+ "fields" : [
3
+ {
4
+ "numDimensions" : 1536 ,
5
+ "path" : " embedding" ,
6
+ "similarity" : " cosine" ,
7
+ "type" : " vector"
8
+ }
9
+ ],
10
+ "name" : " vector_index" ,
11
+ "type" : " vectorSearch" ,
12
+ "database" : " llama_index_test_db" ,
13
+ "collectionName" : " llama_index_test_vectorstore"
14
+ }
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ set -x
4
+
5
+ . $workdir /src/.evergreen/utils.sh
6
+
7
+ PYTHON_BINARY=$( find_python3)
8
+ $PYTHON_BINARY -c " import sys; print(f'Python version found: {sys.version_info}')"
9
+
10
+ # cd to the MongoDB integration. It has its own project
11
+ cd llama-index-integrations/vector_stores/llama-index-vector-stores-mongodb
12
+
13
+ # Install Poetry into base python
14
+ $PYTHON_BINARY -m pip install -U pip poetry
15
+ # Create a package specific poetry environment
16
+ $PYTHON_BINARY -m poetry env use $PYTHON_BINARY
17
+ # Activate the poetry env, which itself does not include poetry
18
+ source $( $PYTHON_BINARY -m poetry env info --path) /bin/activate
19
+ # Recreate the poetry lock file
20
+ $PYTHON_BINARY -m poetry lock --no-update
21
+ # Install from pyproject.toml into package specific environment
22
+ $PYTHON_BINARY -m poetry install --with dev
23
+
24
+ # Run tests. Sensitive variables in Evergreen come from Evergreen project: ai-ml-pipeline-testing/
25
+ OPENAI_API_KEY=$openai_api_key \
26
+ MONGO_URI=$llama_index_mongodb_uri \
27
+ MONGODB_DATABASE=" llama_index_test_db" \
28
+ MONGODB_COLLECTION=" llama_index_test_vectorstore" \
29
+ MONGODB_INDEX=" vector_index" \
30
+ $PYTHON_BINARY -m poetry run pytest -v tests
You can’t perform that action at this time.
0 commit comments