Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove[BambooVectorstore]: delete bamboo vectorstore completely #1463

Merged
merged 2 commits into from
Dec 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 1 addition & 10 deletions pandasai/agent/base.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import os
import traceback
import uuid
from typing import Any, List, Optional, Tuple, Union
Expand Down Expand Up @@ -88,15 +87,7 @@ def __init__(
)

# Initiate VectorStore
if vectorstore is None and os.environ.get("PANDASAI_API_KEY"):
try:
from pandasai.vectorstores.bamboo_vectorstore import BambooVectorStore
except ImportError as e:
raise ImportError(
"Could not import BambooVectorStore. Please install the required dependencies."
) from e

self._state.vectorstore = BambooVectorStore(logger=self._state.logger)
self._state.vectorstore = vectorstore

# Initialize Cache
self._state.cache = Cache() if self._state.config.enable_cache else None
Expand Down
3 changes: 1 addition & 2 deletions pandasai/vectorstores/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
Vector stores to store data for training purpose
"""

from .bamboo_vectorstore import BambooVectorStore
from .vectorstore import VectorStore

__all__ = ["VectorStore", "BambooVectorStore"]
__all__ = ["VectorStore"]
84 changes: 0 additions & 84 deletions pandasai/vectorstores/bamboo_vectorstore.py

This file was deleted.

88 changes: 0 additions & 88 deletions tests/unit_tests/vectorstores/test_bamboo_vector_store.py

This file was deleted.

Loading