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.0.tar.gz.

File metadata

File hashes

Hashes for llama_index_retrievers_vertexai_search-0.3.0.tar.gz
Algorithm Hash digest
SHA256 b671f052966e775d2445e3644dfa0596ef0f85a8e8263e5d11448cee73200679
MD5 9de54b445b2d763050cb62e60fc844dc
BLAKE2b-256 1c96134509f3186981bd5e9c3dfb38a5d6c191ddf0c59943780721fa871149be

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_retrievers_vertexai_search-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 386d162f270470137f93da4251b61194e3a8cdce3fa49012a662983061b0139c
MD5 dcfc821cbe23288e4677770b61c240b1
BLAKE2b-256 466cc14bad3371270d0d807e3f24b77a5f73b414975854739edf60fb10c42c01

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