The Search Experts

  • Live Demos
  • Blog
  • Help
    • Contact Us
    • My Licenses
      • Login
      • Download
      • Why us
      • Contact us
    • Features
      • Google Retail Search
      • Weaviate
      • Elasticsearch
      • OpenSearch
      • Solr
      • Algolia
      • Roadmap
      • Artificial Intelligence
      • Hosting
      • Releases
    • Documentation
    • Support
    • Testimonials
Menu
  • Live Demos
  • Blog
  • Help
    • Contact Us
    • My Licenses
      • Login
      • Download
      • Why us
      • Contact us
    • Features
      • Google Retail Search
      • Weaviate
      • Elasticsearch
      • OpenSearch
      • Solr
      • Algolia
      • Roadmap
      • Artificial Intelligence
      • Hosting
      • Releases
    • Documentation
    • Support
    • Testimonials
WPSOLR FREE
WPSOLR PRO
Search

Home » Your configuration journey, step by step » Configure your indexes » Create a Weaviate index » Weaviate with Google PaLM API

Weaviate with Google PaLM API

1144 views 0 May 18, 2023

1. Google PaLM vectorizer

Google PaLM vectorizer uses the Google PaLM API to create Embeddings (vectors) from data. Vectorizing from large language models is CPU intensive, often requires GPUs, and can be very ineffective without proper optimisations. This is the purpose of this module, which calls Google PaLM servers with their Embeddings API.

 

Create a docker compose file from Weaviate wizzard : select the Text transformers vectorizer, with a specific transformer model among the list. Then start the docker container.

Image wpsolr-weaviate-configurator-text2vec-palm-docker-857x1024.png of Weaviate with Google PaLM API

  • (1) Select the “Text” vectorizer type
  • (2) Select the “Google PaLM” vectorizer
  • (3) Leave it. The API key will be set later, in WPSOLR’s settings.

Download and execute the docker-compose file generated by the wizard (docker-compose up -d):
Image wpsolr-weaviate-configurator-text2vec-palm-docker-file.png of Weaviate with Google PaLM API

Image wpsolr-weaviate-docker-autoschema-enabled-false-1.png of Weaviate with Google PaLM API

 

Create a GCP project with Vertex AI authorization

Before starting, check out the Google PaLM Embedding models pricing for the model “textembedding-gecko-001”.

 

Image wpsolr-weaviate-text2vec-palm-enable-vertex-api.png of Weaviate with Google PaLM API

  1. Select or create your Google Cloud project
  2. Click on the APIs menu
  3. Click on the button “Enable APIs”
  4. Select and activate the “Vertex AI” API

 

Image wpsolr-weaviate-text2vec-palm-service-account-menu.png of Weaviate with Google PaLM API

  1. Select project menu
  2. Select menu “IAM & Admin
  3. Select menu “Service Accounts”

 

Image wpsolr-weaviate-text2vec-palm-service-account-new-button.png of Weaviate with Google PaLM API

  1. Click on “+ CREATE SERVICE ACCOUNT”

 

Image wpsolr-weaviate-text2vec-palm-service-account-details.png of Weaviate with Google PaLM API

  1. Enter the new service account name
  2. Enter the new service account details
  3. Click on “Create and continue”

 

Image wpsolr-weaviate-text2vec-palm-service-account-role.png of Weaviate with Google PaLM API

  1. Click on “Role”
  2. Select your role
  3. Click on “Done”

 

Image wpsolr-weaviate-text2vec-palm-service-edit-keys.png of Weaviate with Google PaLM API

 

  1. Click on the menu of the new service account
  2. Select “Manage keys”

 

Image wpsolr-weaviate-text2vec-palm-service-create-key.png of Weaviate with Google PaLM API

  1. Click on tab “Keys”
  2. Click on “Add key”
  3. Select “json”
  4. Click on “create”

 

Image wpsolr-google-retail-project-service-account-created-key-1024x338.png of Weaviate with Google PaLM API

  1. The json private key is downloaded on your computer

 

Image word-image-45.png of Weaviate with Google PaLM API

  1. Open your key.json and copy its content. It will be used later during the WPSOLR setup.

 

Now, let’s create our index in WPSOLR:

Image wpsolr-weaviate-text2vec-palm-service-create-index.png of Weaviate with Google PaLM API

  • (1) Select the text2vec-palm vectorizer module
  • (2) Set a name for you index, visible in WPSOLR admin
  • (3) Set a name for your Weaviate class (index)
  • (4) Set the url of your Weaviate docker container
  • (5) Copy the content of your Google Cloud JSON key described earlier
  • (6) Set the PaLM model
  • (7) Create the index. Done!

 

Connect to the Weaviate GraphQL console at https://console.semi.technology/console with url https://localhost:8080, to check our new index (class):

Image wpsolr-weaviate-text2vec-palm-service-class-in-console.png of Weaviate with Google PaLM API

2 Select your data

Image wpsolr-weaviate-new-index-text2vec-transormers-select.png of Weaviate with Google PaLM API

  • (1) (2) (3) select the index you just created
  • (4) Choose a filter: “Near Text” to perform a vector search (search on concepts), or “Where” to perform a keywords search (classic search that works with words)
  • (5) Set a similarity for your “Near Text” search. The closer to “1”, the more precise is the vector search.

 

3 Index your data

Image wpsolr-weaviate-indexed.png of Weaviate with Google PaLM API

 

Was this helpful?

Yes  No
Related Articles
  • Weaviate with Hybrid search
  • Weaviate with Question Answering transformers
  • Weaviate with Cohere Multilingual API
  • Weaviate with OpenAI GPT API
  • Weaviate with HuggingFace Endpoints API
  • Weaviate with CLIP text-to-image

Didn't find your answer? Contact Us

Previously
Create a Weaviate index
Up Next
Weaviate with sentence transformers
Expand All Collapse All
  • What is it WPSOLR ?
    • The standard WordPress SQL search
    • The WPSOLR search with Elasticsearch, Apache Solr, or Algolia
  • Your configuration journey, step by step
    • Install Apache Solr
    • Hosted Apache Solr and SolrCloud Services
    • Install Elasticsearch
    • Elasticsearch Hosting
    • Configure your indexes
      • Create a Google Retail search index
      • Create a Weaviate index
        • Weaviate with Google PaLM API
        • Weaviate with sentence transformers
        • Weaviate with CLIP text-to-image
        • Weaviate with HuggingFace Endpoints API
        • Weaviate with OpenAI GPT API
        • Weaviate with Cohere Multilingual API
        • Weaviate with Question Answering transformers
        • Weaviate with Hybrid search
      • Generate a test Apache Solr index
      • Generate a test Elasticsearch index
      • Create an Apache Solr index
      • Create a SearchStax SolrCloud index
      • Create an Elastic Elasticsearch index
      • Create an Amazon AWS OpenSearch index
      • Create an Algolia index
      • Create an Elasticsearch index
      • Create an Opensolr Solr index
      • Create a Qbox Elasticsearch index
      • Create an ElasticPress Elasticsearch index
      • Create an Aiven Elasticsearch or OpenSearch index
      • Create a Bonsai Elasticsearch index
      • Create an Amazon AWS Elasticsearch index
      • Create an ObjectRocket Elasticsearch index
      • Create a Cloudways Elasticsearch index
      • Create an Alibaba Cloud Elasticsearch index
      • Create a Compose Elasticsearch index
      • Connect to an Apache Solr index
      • Connect to an Elasticsearch index
    • Add-ons
      • bbPress add-on
      • YITH WooCommerce Ajax Search add-on
      • SEO add-ons
        • Yoast SEO add-on
        • All in One SEO add-on
      • Listable add-on
      • ACF add-on
      • Advanced Scoring add-on
      • Cron Scheduling add-on
      • Theme add-on
        • Filters layouts
          • Radiobox & Checkbox Layout
          • Numeric Range Layout
          • Colour Picker Layout
          • Range Slider Layout
        • Add Ajax to the current Theme
        • Collapse taxonomy hierarchies
        • Custom Facets CSS
      • WPML add-on
      • Premium add-on
        • Manage more than one Elasticsearch or Solr index
      • PDF Embedder add-on
      • Geolocation add-on
      • AI Natural Language APIs add-on
        • Amazon Comprehend
        • Google Natural Language
        • Aylien Text Analysis
        • MeaningCloud
        • Qwam Text Analytics
      • Toolset Types add-on
      • AI Image and OCR APIs add-on
        • Google Vision
        • Amazon Rekognition
      • Embed Any Document add-on
      • MyListing add-on
      • Polylang add-on
      • WooCommerce add-on
      • Cross-domain search add-on
      • Directory+ add-on
      • Toolset Views add-on
      • Listify add-on
      • Jobify add-on
      • Query Monitor add-on
  • Quick start
Login
Support
Privacy policy
  • Terms and Conditions
  • © 2020 wpsolr.com. All Rights Reserved.
Youtube
Roadmap