Issue with bring your own vectors

Description

Hello everybody. I am stuck with the issue of bringing my own vectors to weaviate cloud. Followed the guide of “batch import”, but didn’t succeed.

import weaviate
from weaviate.classes.init import Auth
from dotenv import load_dotenv
import weaviate.classes.config as wc
import os
import weaviate.classes as wvc
from weaviate_test.chroma import chromadb_data

Загружаем переменные окружения из файла .env

load_dotenv()

Получение переменных окружения с помощью os.getenv()

weaviate_url = os.getenv(“WEAVIATE_URL”)
weaviate_api_key = os.getenv(“WEAVIATE_API_KEY”)

Connect to Weaviate Cloud

client = weaviate.connect_to_weaviate_cloud(
    cluster_url=weaviate_url,
    auth_credentials=Auth.api_key(weaviate_api_key),
)

client.collections.create(
    name="AxiSCADA",
    vectorizer_config=wc.Configure.Vectorizer.none(),
)

AXI_SCADA = list()
i = 0
for i in range (0, len(chromadb_data)):
    AXI_SCADA.append(wvc.data.DataObject(
        properties={
            "ids": chromadb_data[i]['ids'][0],
            "documents": chromadb_data[i]['documents'][0],
            "section_tag": chromadb_data[i]['metadatas'][0]['section_tag'],
            "urls": chromadb_data[i]['metadatas'][0]['urls']
        },
        vector=chromadb_data[i]['embeddings'][0]
    ))

print(AXI_SCADA)
questions = client.collections.get("AxiSCADA")
questions.data.insert_many(AXI_SCADA)

articles = client.collections.get("AxiSCADA")
articles_config = articles.config.get()

print(articles_config)


client.close()

My code is like that. Embeddings represent “documents” only. I printed out AXI_SCADA and there vectors. But i don’t see them in cloud and i can’t get a vector response. BM25 response works fine.

Server Setup Information

  • Weaviate Server Version: weaviate_cloud

hi @startde !!

Welcome to our community :hugs:

Your code seems right. The only downside is that it is not using Batch, so it will not have the best performance for large ingestion.

Do you see any error logs while inserting that data?