guardrails-ai / guardrails

Adding guardrails to large language models.
https://www.guardrailsai.com/docs
Apache License 2.0
3.94k stars 301 forks source link

[feat] Add support for passing metadata when using integrations #1054

Open CalebCourier opened 1 month ago

CalebCourier commented 1 month ago

Description A user needs to be able to pass metadata to a guard call regardless of how they're interacting with it. This includes:

Why is this needed Some validators require specific pieces of metadata to run. For example, ProvenanceEmbeddings requires sources.

Implementation details The implementation will likely change based on the integration. i.e. The langchain integration can be used both client and server side, whereas the proxy use cases are server only.

End result User can pass metadata regardless of how they are interacting with Guardrails.

github-actions[bot] commented 13 hours ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 14 days.