Skip to content

Commit

Permalink
Merge branch 'main' into fix-gemini-memory-issues
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkbrnd authored Feb 18, 2025
2 parents c9a314e + 299827b commit 1da4972
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions libs/agno/agno/vectordb/pineconedb/pineconedb.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,26 @@
from typing import Any, Dict, List, Optional, Union

try:
from packaging import version
from pinecone import __version__

if version.parse(__version__).major >= 6:
import warnings

warnings.warn(
"We do not yet support Pinecone v6.x.x. We are actively working to achieve compatibility. "
"In the meantime, we recommend using Pinecone v5.4.2 for the best experience. Please run `pip install pinecone==5.4.2`",
UserWarning,
)
raise RuntimeError("Incompatible Pinecone version detected. Execution halted.")

from pinecone import Pinecone, PodSpec, ServerlessSpec
from pinecone.config import Config

except ImportError:
raise ImportError("The `pinecone` package is not installed, please install using `pip install pinecone`.")


from agno.document import Document
from agno.embedder import Embedder
from agno.reranker.base import Reranker
Expand Down

0 comments on commit 1da4972

Please sign in to comment.