Skip to main content

llama-index retrievers vertex ai search integration

Project description

LlamaIndex Retrievers Integration: Vertex AI Search

Vertex AI Search

Vertex AI Search helps developers build secure, Google-quality search experiences for websites, intranet and RAG systems for generative AI agents and apps. Vertex AI Search is a part of Vertex AI Agent Builder.

Vertex AI Agent Builder: Create AI agents and applications using natural language or a code-first approach. Easily ground your agents or apps in enterprise data with a range of options. Vertex AI Agent Builder gathers all the surfaces and tools that developers need to build their AI agents and applications..

Installation

pip install llama-index-retrievers-vertexai-search

Usage

from llama_index.retrievers.vertexai_search import VertexAISearchRetriever

retriever = VertexAISearchRetriever(
        project_id=PROJECT_ID,
        data_store_id=DATA_STORE_ID,
        location_id=LOCATION_ID,
        engine_data_type=1
    )

query = "harry potter"
retrieved_results = retriever.retrieve(query)

# Prints the first retrieved result
print(retrieved_results[0].get_content())

Notebook

Explore the retriever using Notebook present at: Open In Colab

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file llama_index_retrievers_vertexai_search-0.3.1.tar.gz.

File metadata

File hashes

Hashes for llama_index_retrievers_vertexai_search-0.3.1.tar.gz
Algorithm Hash digest
SHA256 5c3d0c6a3e0d87ca5be5d318667f3ae9c6f5ab9dd6fe95bd9cf1093d4ec537ea
MD5 ae6b9c072c1b965314244d25bfa21037
BLAKE2b-256 4feabe63b97a6c3920b5d154a314d8fda82401ee310555964ee70cdebb908cb1

See more details on using hashes here.

File details

Details for the file llama_index_retrievers_vertexai_search-0.3.1-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_retrievers_vertexai_search-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d6d96fc867491c498fe7df57a3b48217d362bdd97ff5d250029c42dfa59348b8
MD5 159cd43f030cdc95b3efea9bc7e6b51c
BLAKE2b-256 553fef8614a4201d4b19527c209734abe73ca02c55f07a1d14c3b3db9fd3c7fb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page