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

[Docs] Wrong example google embeddings AI Studio Python example

$
0
0

I got an error using Python API v4 example with AI Studio on the
Document.

I can run following vectorizer_config.

    client.collections.create(
        name=collection_name,
        vectorizer_config=[
            Configure.NamedVectors.text2vec_palm(
                name="title_vector", 
                source_properties=["title"],
                model_id="text-embedding-004",
                api_endpoint="generativelanguage.googleapis.com",
                project_id=""
            )
        ],

I think there are 2 problems.

  1. The project_id is REQUIRED on Python Client.
  2. Default api_endpoint is Vertex AI for text2vec_palm on Server side.

What do you think?


Viewing all articles
Browse latest Browse all 3604

Trending Articles