I am working on a 'chat bot' for a work project that will let me 'talk' with documents. Part of the project is being able to have the AI know when not to answer certain questions. Essentially, I want to protect PII due to HIPPA laws, so if a user asks about something they wouldn't have access to, the AI won't answer or will reply with "I can't answer that..". Something I looked at was ConstitutionalChain and ConstitutionalPrinciple and implementing ethics, but I'm unsure if I'm able to implement that with document retrieval. Anyone worked with this before or encountered a different way to go about it?
Is it possible to give AzureChatOpenAI 'rules' to follow?
270 Views Asked by datacat At
1
There are 1 best solutions below
Related Questions in OPENAI-API
- OpenAI API and GPT-3, not clear how can I access or set up a learning/dev?
- Python OpenAI API: Can't instantiate abstract class CustomExtractor with abstract method class_name
- openAI API curl statement: How to feed the messages json array with variables?
- Can’t consume the Azure OpenAI API
- Query with my own data using langchain and pinecone
- Dumping embeddings in FAISS DB in langchain causing RAM to explode
- How can I restrict OpenAI to return only data from a Pinecone Vector DB?
- Getting lists and dictionaries from my function call in the openai api
- Google Cloud Functions - python and (openai API)
- can't install open-interpreter. Error for rustc
- OPENAI GPT-4 response length limit
- Getting an error "'image' is a required property" while generating image variations using openai and JavaScript
- OpenAI API error: "TypeError: Cannot read properties of undefined (reading 'choices')"
- React-Native issue while implementing Langchain
- Can I fine-tune the again a gpt-3.5-turbo fine tuned model with more data?
Related Questions in LANGCHAIN
- Query with my own data using langchain and pinecone
- Dumping embeddings in FAISS DB in langchain causing RAM to explode
- How can I use Langchain to identify the top k sentences that are the closest match to a user query and then return the docs containing these sentences
- How can I restrict OpenAI to return only data from a Pinecone Vector DB?
- Langchain : How do input variables work, in particular how is "context" replaced by what I want in the Template?
- How to integrate Langchain's Human Tool into Streamlit
- Implementing Vercel KV with LangChain (Vercel AI SDK)
- Could not find a version that satisfies the requirement python-magic-bin
- Mocks passed to LangChain are not preserved
- Methodology for Tracking Client Details in a Natural Language Bot using Langchain and RAG
- How to use Langchian SQL with Llama 2 GGUF
- Can we use hardcoded messages in agent tools in langchain?
- How to Access Model Output's Logits in LLMChain?
- Filter langchain vector database using as_retriever search_kwargs parameter
- How can I make my agent to ask for missing tool parameters and get them in a specific format
Related Questions in PY-LANGCHAIN
- Can we use hardcoded messages in agent tools in langchain?
- Python Langchain RAG example code. Unsupported operand types for |: 'method' and 'operator.itemgetter'
- Handling LangChain Async Calls
- How do I use a multi-input StructuredTool with a Pandas Dataframe Agent?
- langchain csvLoader error openai.error.InvalidRequestError: '$.input' is invalid
- How to convert gguf to bin?
- how to deal with dict input type in langchain
- How to Convert openai functions to PromptTemplate in langchain when using local llms?
- Getting RateLimitError when using open-source LLMs
- Set an argument for a function down the chain
- "AttributeError: __pydantic_private__"--Chroma langchain vectorstore runs into AttributeError when run
- In langchain embeddings using PGVector if the user asks question and it matched 2 files. I need to show the response with the latest uploaded file
- Why agent is not a chain?
- How do i filter and show response from latest file using my PGVector
- Langchain: how to get complete prompt `RetrievalQA.from_chain_type`
Related Questions in AZURE-OPENAI
- QA_Chain from Langchain does not recognize Azure OpenAi engine' or 'deployment_id
- Send out extra headers when using AzureChatOpenAI in Langchain python
- Azure OpenAI - Cache the question and answer
- Token usage of Content Filtered messages in Azure OpenAI Services
- AzureOpenAIModelFactory StreamingChatCompletions throws System NullReferenceException
- Is there a way via API to know what AI model the specified Azure Open AI endpoint (deployment) is configured to use?
- Download all chat history programmatically
- Azure OpenAI LangChain - (InvalidField) The vector field 'content_vector' must have the property 'vectorSearchConfiguration' set
- What is the request-per-minute rate limit for Azure openAI models for gpt-3.5-turbo?
- I am trying to make a docs question answering program with AzureOpenAI and Langchain
- Azure OpenAi Limit data to your content button not working as expected
- Azure OpenAI on your data - System message usage
- Azure Cognitive Search multiple sql tables
- Indexer in Azure Cognitive Search service not being created
- azure openai cognitive search data architecture for RAG
Related Questions in AZURE-AI
- ¿How to obtain an endpoint from an autoML that gives me the test result in probabilities instead of in binary classes in AzureMLStudio?
- How to analyze only the first and last pages of a PDF document using Azure Document Intelligence SDK
- Azure container registry detail using Azure SDK for Python
- How to create Azure AI services multi-service account using Terraform
- How to change the default timeout of Azure Speech which of 15 seconds to something like in mins scale
- Trying to build an app with convert real time speech to text
- Azure Bot throws service unavailable error when testing in web chat
- The resource type 'locations/operationResults' could not be found in the namespace 'Microsoft.CognitiveServices' for api version '2023-08-01-preview'
- Azure Open AI bring your own data feature returning error on getChatCompletions call: "Functions are not supported at this time."
- Keyword generation from product names
- Unable to deploy a model with Azure endpoints in Azure ML studio
- Azure Cognitive Search: Not always returning @search.answers but values with scores
- How to create insights or recommendations from SharePoint list using Syntex?
- How to use the Multi-variate Anomaly Detection Cognitive Service by Azure?
- TSLint is throwing 'error TS2459: Module '"@azure/core-tracing"' declares 'Span' locally, but it is not exported.' and other errors
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Filtering will be supported eventually, thus you can use security filters to trim the results. See Security filters for trimming results - Azure Cognitive Search | Microsoft Learn.