Find answers from the community

Updated 3 months ago

Hello, can we change the distance metric

Hello, can we change the distance metric when using LanceDBVectorStore?

Plain Text
   vector_store = LanceDBVectorStore(
      uri="./lancedb"
   )
   storage_context = StorageContext.from_defaults(vector_store=vector_store)
   
   index = VectorStoreIndex.from_documents(
      [document1], storage_context=storage_context
   )

   index.as_retriever().retrieve("Michael")

thanks
Add a reply
Sign up and join the conversation on Discord