Quantcast
Channel: Weaviate Community Forum - Latest posts
Viewing all articles
Browse latest Browse all 3588

How to create vector embedding for multiple fields

$
0
0

I want to store embedding separately for two fields. For example, I am creating a schema like this

           skills = self.client.collections.create(
                name=self.collection_name,
                vectorizer_config=wvc.config.Configure.Vectorizer.text2vec_azure_openai(
                    deployment_id="text-embedding-ada-002",
                    resource_name="",
                    vectorize_collection_name=True
                ),
                properties=[
                    wvc.config.Property(
                        name="skill_name",
                        data_type=wvc.config.DataType.TEXT,
                        vectorize_property_name=True
                    ),
                    wvc.config.Property(
                        name="description",
                        data_type=wvc.config.DataType.TEXT,
                        vectorize_property_name=True
                    ),
                    wvc.config.Property(
                        name="etldatetime",
                        data_type=wvc.config.DataType.TEXT,
                        skip_vectorization=True
                    ),
                ]
            )

now i want skill_name and description embedding to be created separately,
share me the query for it, also how to search from the collection similarly, Thanks


Viewing all articles
Browse latest Browse all 3588

Trending Articles