awslabs / generative-ai-cdk-constructs

AWS Generative AI CDK Constructs are sample implementations of AWS CDK for common generative AI patterns.
https://awslabs.github.io/generative-ai-cdk-constructs/
Apache License 2.0
302 stars 40 forks source link

(Bedrock/Agents): helper methods to associate KnowledgeBases to Agents #270

Open massi-ang opened 4 months ago

massi-ang commented 4 months ago

Describe the feature

Allow for adding a KnowledgeBase to an agent and not only to specify existing KBs at the agent construct instantiation.

Use Case

Allow for more flexibility in the order in which agents and KBs are created

Proposed Solution

Implement a Agent.addKnowldgeBase(KnowledgeBase, {instructions}) and a KnowledgeBase.assToAgent(Agent, {instruxtions}) methods

Other Information

No response

Acknowledgements

krokoko commented 4 months ago

Hi @massi-ang ! Thanks for this request ! I see you mentioned you may be able to implement this FR, do you have bandwidth to work on this one ?