usingvarclient=newVectaraClient(apiKey);// First, list available corpora to get a corpus key.ListCorporaResponsecorporaResponse=awaitclient.Corpora.ListAsync();if(corporaResponse.Corporaisnot{Count:>0}){return;}varcorpusKey=corporaResponse.Corpora[0].Key!;// Execute a query with generation (RAG) against the corpus.QueryFullResponseresponse=awaitclient.Queries.Query2Async(query:"What is this about?",search:newSearchCorporaParameters{SearchCorporaParametersVariant1=newSearchCorporaParametersVariant1{Corpora=[ new KeyedSearchCorpus { KeyedSearchCorpusVariant2 = new KeyedSearchCorpusVariant2 { CorpusKey = corpusKey, }, }, ],},},generation:newGenerationParameters{MaxUsedSearchResults=5,});Console.WriteLine($"Summary: {response.Summary}");foreach(varresultinresponse.SearchResults??[]){varresultBase=PickSearchResultBase(result);varpreview=resultBase?.Textis{Length:>0}text?text[..Math.Min(80,text.Length)]:null;Console.WriteLine($" Score: {resultBase?.Score}, Text: {preview}...");}