Skip to content
Snippets Groups Projects
Unverified Commit c50eb841 authored by James Briggs's avatar James Briggs Committed by GitHub
Browse files

Merge branch 'main' into patch-1

parents 88bfce3a 02dbfb69
No related branches found
No related tags found
No related merge requests found
......@@ -46,6 +46,8 @@ jobs:
run: |
python -m nltk.downloader punkt stopwords wordnet
- name: Pytest
env:
PINECONE_API_KEY: ${{ secrets.PINECONE_API_KEY }}
run: |
make test
- name: Upload coverage to Codecov
......
......@@ -258,7 +258,8 @@ class TestRouteLayer:
assert query_result in ["Route 1"]
def test_query_filter_pinecone(self, openai_encoder, routes, index_cls):
pineconeindex = PineconeIndex()
pinecone_api_key = os.environ["PINECONE_API_KEY"]
pineconeindex = PineconeIndex(api_key=pinecone_api_key)
route_layer = RouteLayer(
encoder=openai_encoder, routes=routes, index=pineconeindex
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment