Skip to main content
Ctrl+K
🦜🔗 LangChain  documentation - Home 🦜🔗 LangChain  documentation - Home
  • Reference
  • Legacy reference
Ctrl+K
Docs
  • GitHub
  • X / Twitter
Ctrl+K
  • Reference
  • Legacy reference
Docs
  • GitHub
  • X / Twitter

Section Navigation

Base packages

  • Core
  • Langchain
  • Text Splitters
  • Community
    • adapters
    • agent_toolkits
    • agents
    • cache
    • callbacks
    • chains
      • ArangoGraphQAChain
      • GraphQAChain
      • GraphCypherQAChain
      • CypherQueryCorrector
      • Schema
      • FalkorDBQAChain
      • GremlinQAChain
      • HugeGraphQAChain
      • KuzuQAChain
      • NebulaGraphQAChain
      • NeptuneOpenCypherQAChain
      • NeptuneSparqlQAChain
      • OntotextGraphDBQAChain
      • GraphSparqlQAChain
      • LLMRequestsChain
      • OpenAPIEndpointChain
      • APIRequesterChain
      • APIRequesterOutputParser
      • APIResponderChain
      • APIResponderOutputParser
      • PebbloRetrievalQA
      • App
      • AuthContext
      • ChainInfo
      • ChainInput
      • Context
      • Framework
      • Model
      • PkgInfo
      • Prompt
      • Qa
      • Runtime
      • SemanticContext
      • SemanticEntities
      • SemanticTopics
      • VectorDB
      • PebbloRetrievalAPIWrapper
      • Routes
      • convert_python_function_to_ernie_function
      • convert_to_ernie_function
      • create_ernie_fn_chain
      • create_ernie_fn_runnable
      • create_structured_output_chain
      • create_structured_output_runnable
      • get_ernie_output_parser
      • construct_schema
      • extract_cypher
      • get_function_response
      • extract_cypher
      • extract_gremlin
      • extract_cypher
      • remove_prefix
      • extract_cypher
      • trim_query
      • use_simple_prompt
      • extract_sparql
      • clear_enforcement_filters
      • set_enforcement_filters
      • get_ip
      • get_runtime
    • chat_loaders
    • chat_message_histories
    • chat_models
    • cross_encoders
    • docstore
    • document_compressors
    • document_loaders
    • document_transformers
    • embeddings
    • example_selectors
    • graph_vectorstores
    • graphs
    • indexes
    • llms
    • memory
    • output_parsers
    • query_constructors
    • retrievers
    • storage
    • tools
    • utilities
    • utils
    • vectorstores
  • Experimental

Integrations

  • AI21
  • Airbyte
  • Anthropic
  • AstraDB
  • AWS
  • Azure Dynamic Sessions
  • Box
  • Chroma
  • Cohere
  • Couchbase
  • Elasticsearch
  • Exa
  • Fireworks
  • Google Community
  • Google GenAI
  • Google VertexAI
  • Groq
  • Huggingface
  • Milvus
  • MistralAI
  • MongoDB
  • Nomic
  • Nvidia Ai Endpoints
  • Ollama
  • OpenAI
  • Pinecone
  • Postgres
  • Prompty
  • Qdrant
  • Robocorp
  • Together
  • Unstructured
  • VoyageAI
  • Weaviate
  • LangChain Python API Reference
  • chains
  • set_enforcem...

set_enforcement_filters#

langchain_community.chains.pebblo_retrieval.enforcement_filters.set_enforcement_filters(retriever: VectorStoreRetriever, auth_context: AuthContext | None, semantic_context: SemanticContext | None) → None[source]#

Set identity and semantic enforcement filters in the retriever.

Parameters:
  • retriever (VectorStoreRetriever) –

  • auth_context (AuthContext | None) –

  • semantic_context (SemanticContext | None) –

Return type:

None

On this page
  • set_enforcement_filters()

© Copyright 2023, LangChain Inc.