LlamaIndex Integration
Using Deep Lake as a Vector Store in LlamaIndex
How to Use Deep Lake as a Vector Store in LlamaIndex
%pip3 install llama-index-vector-stores-deeplake
!pip3 install langchain llama-index deeplakeDownloading and Preprocessing the Data
import os
import textwrap
from llama_index.core import VectorStoreIndex, SimpleDirectoryReader
from llama_index.vector_stores.deeplake import DeepLakeVectorStore
from llama_index.core import StorageContext!git clone https://github.com/twitter/the-algorithmrepo_path = 'the-algorithm'
documents = SimpleDirectoryReader(repo_path, recursive=True).load_data()Creating the Deep Lake Vector Store
Use the Vector Store in a Q&A App
Was this helpful?