anthropics / anthropic-quickstarts

A collection of projects designed to help developers quickly get started with building deployable applications using the Anthropic API
MIT License
2.52k stars 223 forks source link

Not working #9

Open f2016862 opened 1 week ago

f2016862 commented 1 week ago

🔍 Initiating RAG retrieval for query: does bolosign follow aatl ⏱️ [2024-09-05T04:13:18.585Z] RAG Start: 0.01s RAG Error: ValidationException: Invalid input or configuration provided. Check the input and Knowledge Base configuration and try your request again.

const input: RetrieveCommandInput = {
  knowledgeBaseId: knowledgeBaseId,
  retrievalQuery: { text: query },
  retrievalConfiguration: {
    vectorSearchConfiguration: { numberOfResults: 3 },
  },
};

const command = new RetrieveCommand(input);
const response = await bedrockClient.send(command);

Checked values, region, keys everything is coming properly but the request is failing

PetreVane commented 5 days ago

This project assumes that you have already created the knowledge base via aws console or some sort of IaC tool. Can you test your knowledge base via aws console?