mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-06 21:43:44 +00:00
[Community][minor]: Added prompt governance in pebblo_retrieval (#24874)
Title: [pebblo_retrieval] Identifying entities in prompts given in PebbloRetrievalQA leading to prompt governance Description: Implemented identification of entities in the prompt using Pebblo prompt governance API. Issue: NA Dependencies: NA Add tests and docs: NA
This commit is contained in:
@@ -133,7 +133,10 @@ class Context(BaseModel):
|
||||
|
||||
|
||||
class Prompt(BaseModel):
|
||||
data: str
|
||||
data: Optional[Union[list, str]]
|
||||
entityCount: Optional[int]
|
||||
entities: Optional[dict]
|
||||
prompt_gov_enabled: Optional[bool]
|
||||
|
||||
|
||||
class Qa(BaseModel):
|
||||
|
Reference in New Issue
Block a user