Skip to content

Sample code to configure using Google Gemini Pro #191

Answered by fcakyon
khannan31 asked this question in Q&A
Discussion options

You must be logged in to vote

easy as this:

import os
from autollm import AutoQueryEngine

os.environ["VERTEXAI_PROJECT"] = "hardy-device-38811" # Your Project ID
os.environ["VERTEXAI_LOCATION"] = "us-central1" # Your Location

llm_model = "gemini-pro"

AutoQueryEngine.from_defaults(
     documents='...',
     llm_model=llm_model,
)

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@khannan31
Comment options

@fcakyon
Comment options

@khannan31
Comment options

@khannan31
Comment options

@khannan31
Comment options

Answer selected by fcakyon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants