diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 99e2dcd9cc74909b6424d53f84b88f88f2d6d455..1d01de9c1fe95b28f1e528846e08c9f3a3dfe8fb 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,19 +22,19 @@ jobs: strategy: matrix: python-version: - # - "3.10" - # - "3.11" - # - "3.12" + - "3.10" + - "3.11" + - "3.12" - "3.13" steps: - uses: actions/checkout@v4 - # - name: Cache Poetry - # uses: actions/cache@v4 - # with: - # path: ~/.poetry - # key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }} - # restore-keys: | - # ${{ runner.os }}-poetry- + - name: Cache Poetry + uses: actions/cache@v4 + with: + path: ~/.poetry + key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }} + restore-keys: | + ${{ runner.os }}-poetry- - name: Wait for Pinecone service to start run: | @@ -48,10 +48,11 @@ jobs: uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - # cache: poetry + cache: poetry - - name: Add Poetry to PATH - run: echo "PATH=$HOME/.local/bin:$PATH" >> $GITHUB_ENV + # only needed for local testing + # - name: Add Poetry to PATH + # run: echo "PATH=$HOME/.local/bin:$PATH" >> $GITHUB_ENV - name: Install dependencies run: | diff --git a/semantic_router/routers/base.py b/semantic_router/routers/base.py index 18456af0c707f6c9d1f7c91613b3004a2d04c1ae..fd7379557367adfed1f93133f305a9513f398c02 100644 --- a/semantic_router/routers/base.py +++ b/semantic_router/routers/base.py @@ -20,7 +20,6 @@ from semantic_router.encoders import ( from semantic_router.index.base import BaseIndex from semantic_router.index.local import LocalIndex from semantic_router.index.pinecone import PineconeIndex -from semantic_router.index.pinecone_local import PineconeLocalIndex from semantic_router.index.qdrant import QdrantIndex from semantic_router.llms import BaseLLM, OpenAILLM from semantic_router.route import Route @@ -397,9 +396,7 @@ class BaseRouter(BaseModel): dims = len(self.encoder(["test"])[0]) self.index.dimensions = dims # now init index - if isinstance(self.index, PineconeIndex) or isinstance( - self.index, PineconeLocalIndex - ): + if isinstance(self.index, PineconeIndex): self.index.index = self.index._init_index(force_create=True) # run auto sync if active