Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(example): Add Generative AI example using RAG and Vector Search #46

Merged

Conversation

caetano-colin
Copy link
Contributor

@caetano-colin caetano-colin commented Jun 6, 2024

  • This PR adds the example that perform multimodal RAG by performing Q&A over a financial document filled with both text and images

The example uses:

  • Vector Search with Private Service Connect
  • Gemini as LLM
  • Vertex AI models extracted from model garden

Copy link
Contributor

@daniel-cit daniel-cit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some minor changes

examples/genai-rag-multimodal/README.md Outdated Show resolved Hide resolved
examples/genai-rag-multimodal/README.md Outdated Show resolved Hide resolved
examples/genai-rag-multimodal/README.md Outdated Show resolved Hide resolved
examples/genai-rag-multimodal/README.md Outdated Show resolved Hide resolved
examples/genai-rag-multimodal/README.md Outdated Show resolved Hide resolved
examples/genai-rag-multimodal/README.md Outdated Show resolved Hide resolved
examples/genai-rag-multimodal/README.md Outdated Show resolved Hide resolved
examples/genai-rag-multimodal/README.md Outdated Show resolved Hide resolved
Comment on lines 22 to 35
output "host_vpc_project_id" {
description = "This is the Project ID where the Host VPC network is located"
value = var.vector_search_vpc_project
}

output "host_vpc_network" {
description = "This is the Self-link of the Host VPC network"
value = var.network
}

output "notebook_project_id" {
description = "The Project ID where the notebook will be run on"
value = var.machine_learning_project
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why are the inputs been added as outputs?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally I'd use values from google_workbench_instance.instance, but since it is unstable, this is a way I found to still be able to run terraform output commands without having any issues.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we could put the values using google_workbench_instance.instance on this PR, but when people are not able to use the resource they will have some trouble following the readme steps

@caetano-colin caetano-colin marked this pull request as ready for review June 11, 2024 11:57
@sleighton2022 sleighton2022 merged commit 7472009 into GoogleCloudPlatform:main Jun 11, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants