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

[Enhancement] TigerRAG: support additional data format and VectorDB. #5

Open
lilinwang opened this issue Nov 3, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@lilinwang
Copy link
Collaborator

Currently, only csv is supported in TigerRAG:

labels_df = pd.read_csv(labels_path)
. It could be useful to support other data format, like txt, jsonl, connect with VectorDB, etc.

@lilinwang lilinwang added the enhancement New feature or request label Nov 3, 2023
@tigerlab-ai
Copy link
Owner

Thoughts about pinecone integration: Create a PineconeVectorStore class, which supports 4 operations:

  1. Initialize and create an instance of PineconeVectorStore, with API key, environment, index_name, optional dimension, optional similarity search metric:
    pinecone.init(api_key="YOUR_API_KEY", environment="YOUR_ENVIRONMENT")
    pinecone.create_index("quickstart", dimension=8, metric="euclidean")
    index = pinecone.Index("quickstart")
  2. Insert data: https://docs.pinecone.io/docs/quickstart#5-insert-vectors
  3. Query: https://docs.pinecone.io/docs/quickstart#7-run-a-similarity-search, which is similar to https://github.com/tigerlab-ai/tiger/blob/main/TigerRag/demos/movie_recs/demo_rag.py#L39C37-L39C37.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants