# Text and multimodal embedding configure

**URL:** https://forum.weaviate.io/t/text-and-multimodal-embedding-configure/2657
**Category:** Support
**Created:** [June 8, 2024, 9:23pm UTC](https://forum.weaviate.io/t/text-and-multimodal-embedding-configure/2657 "2024-06-08T21:23:18Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Sridhar\_Iyer](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/sridhar_iyer/32/1148_2.png) [@Sridhar\_Iyer](https://forum.weaviate.io/u/Sridhar_Iyer)
#### Post date: [June 8, 2024, 9:23pm UTC](https://forum.weaviate.io/t/text-and-multimodal-embedding-configure/2657/1 "2024-06-08T21:23:18Z")

</div>

### Description

```auto
weav_client.collections.create(
        name=COLLECTION_NAME,

        vectorizer_config=[
           Configure.NamedVectors.text2vec_palm(
             name ="image_description",
             source_properties=["image_description"],
             project_id= "xxxx",
             api_endpoint="xxxx",
           ),
            Configure.Vectorizer.multi2vec_palm(
                image_fields=["image"],
                text_fields=["summary_description"],
                project_id = "xxxx",
                location = "us-central1",
                model_id = "multimodalembedding@001",
                dimensions = 1408,
            ),
        ],
    properties=[
        Property(name="image", data_type=DataType.BLOB,),
        Property(name="image_description", data_type=DataType.TEXT),
        Property(name="summary_description", data_type=DataType.TEXT),

```

```
   .............

```

The above errors out : (error message below)  
Input should be a valid dictionary or instance of \_NamedVectorConfigCreate [type=model\_type, input\_value=\_Multi2VecPalmConfig(vect…deoIntervalSeconds=None), input\_type=\_Multi2VecPalmConfig]  
For further information visit [Redirecting...](https://errors.pydantic.dev/2.6/v/model_type)

An example given at: ( [Collection definition | Weaviate Documentation](https://weaviate.io/developers/weaviate/config-refs/schema/multi-vector) )

```auto
collection = client.collections.create(
    name="Named_Vector_Jeopardy_Collection",
    description="Jeopardy game show questions",
    vectorizer_config=[
        wvc.config.Configure.NamedVectors.text2vec_cohere(
            name="jeopardy_questions_vector",
            source_properties=["question"],
            vectorize_collection_name=False,
        ),
        wvc.config.Configure.NamedVectors.text2vec_openai(
            name="jeopardy_answers_vector",
            source_properties=["answer"],
            vectorize_collection_name=False,
        ),
    ],
    properties=[
        wvc.config.Property(name="category", data_type=wvc.config.DataType.TEXT),
        wvc.config.Property(name="question", data_type=wvc.config.DataType.TEXT),
        wvc.config.Property(name="answer", data_type=wvc.config.DataType.TEXT),
    ],
)

```

Any suggestions on fixing the error I get? thanks

### Server Setup Information

- Weaviate Server Version:
- Deployment Method: 
- Multi Node? Number of Running Nodes:
- Client Language and Version:
- Multitenancy?:

### Any additional Information

---

<div class="post-metadata">

### Author: ![DudaNogueira](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/dudanogueira/32/7846_2.png) [@DudaNogueira](https://forum.weaviate.io/u/DudaNogueira)
#### Post date: [June 10, 2024, 6:07pm UTC](https://forum.weaviate.io/t/text-and-multimodal-embedding-configure/2657/2 "2024-06-10T18:07:57Z")

</div>

hi @Sridhar_Iyer !!

There is a small error in your named vectors definition 🙈

instead of  
`Configure.NamedVectors.multi2vec_palm`  
you are using  
`Configure.Vectorizer.multi2vec_palm`

when using the `NamedVectors`, you also need to pass a name for it

here is a working code:

```auto
from weaviate.classes.config import Configure, Property, DataType
client.collections.delete("Test")
client.collections.create(
        name="Test",

        vectorizer_config=[
           Configure.NamedVectors.text2vec_palm(
             name ="image_description",
             source_properties=["image_description"],
             project_id= "xxxx",
             api_endpoint="xxxx",
           ),
            Configure.NamedVectors.multi2vec_palm(
                name="image_and_summary",
                image_fields=["image"],
                text_fields=["summary_description"],
                project_id = "xxxx",
                location = "us-central1",
                model_id = "multimodalembedding@001",
                dimensions = 1408,
            ),
        ],
    properties=[
        Property(name="image", data_type=DataType.BLOB,),
        Property(name="image_description", data_type=DataType.TEXT),
        Property(name="summary_description", data_type=DataType.TEXT),
    ]
)

```

Let me know if this helps.

Thanks!
