GoogleCloudPlatform / GoogleCloudPlatform/generative-ai

[Bug]: discoveryengine.SearchRequest can't find results

Open
#2,046 0 comments 0 reactions 1 assignee Claimed by @agarwal22megha View on GitHub
Dominant language
Jupyter Notebook
Stars
17.7k
Forks
4.5k
Avg merge
12h 38m
Merged PRs (30d)
42

Description

### File Name

https://github.com/GoogleCloudPlatform/generative-ai/blob/main/search/vertexai-search-options/vertexai_search_options.ipynb

### What happened?

I followed the instruction and run the code.
But it always return - > summary: "No results could be found. Try rephrasing the search query."
while I was using search_sample function.

It is weird, because it can run with curl instruction with [Google cloud / AI Applications / Apps / {app name} / Integration / API ]

Is there any possible induce it dose't work with python code?
Btw, I always use the same search query. It can run with curl but not python code.

### Relevant log output

```shell
search_response = search_sample(
PROJECT_ID, VERTEX_AI_SEARCH_LOCATION, VERTEX_AI_SEARCH_APP_ID, SEARCH_QUERY
)
search_response.summary.summary_with_metadata

-> summary: "No results could be found. Try rephrasing the search query."
citation_metadata {
}
```

### Code of Conduct

- [x] I agree to follow this project's Code of Conduct

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.