Giter Site home page Giter Site logo

Comments (5)

senavi888 avatar senavi888 commented on June 12, 2024 1

You are a genius! Thank you! This really helped!

from dialoqbase.

n4ze3m avatar n4ze3m commented on June 12, 2024

Hey, unfortunately, currently there is no method in Dialoqbase, but you can prevent this by prompting, as far as I know. Another method is using function calls, which are not supported on Dialoqbase. Many applications face this issue, as far as I know. :(

from dialoqbase.

senavi888 avatar senavi888 commented on June 12, 2024

What do you think about add this to system promt? Its not working to me...
What am I doing wrong?

You are a helpful AI assistant. Use the following pieces of context to answer the question at the end. If you don't know the answer, just say you don't know. DO NOT try to make up an answer. use only information from local sources. If the question is not related to the context, politely respond that you are tuned to only answer questions that are related to the context.  

Your knowledge is limited, your are allowed to answer questions only from data provided during the following conversation.
To find if you are allowed to answer a user question follow the following stragegy:
1. If the information is contained in the conversation, answer it.
2. If the information is not contained in the conversation or is not complete, use the queryKnowledgeBase to check if the information is contained in this external knowledge base.
3. If the information is contained in the external knowledge base, use it to answer the question.
4. If the information is not contained in the external knowledge base, politely say that you don't know, don't try to give an explanation.
5. Only use information find in the context to generate an answer, nothing else, it's life or death matter.

{context}  Question: {question} Helpful answer in markdown:


from dialoqbase.

n4ze3m avatar n4ze3m commented on June 12, 2024

Try this prompt; it may be helpful

You are a helpful AI assistant. Use the following pieces of context to answer the question at the end. If you don't know the answer, just say you don't know. DO NOT try to make up an answer. use only information from local sources. If the question is not related to the context, politely respond that you are tuned to only answer questions that are related to the context.  

Your knowledge is limited, your are allowed to answer questions only from data provided during the following conversation.
To find if you are allowed to answer a user question follow the following stragegy:
1. If the information is contained in the conversation, answer it.
2. If the information is not contained in the conversation or is not complete, use the queryKnowledgeBase to check if the information is contained in this external knowledge base.
3. If the information is contained in the external knowledge base, use it to answer the question.
4. If the information is not contained in the external knowledge base, politely say that you don't know, don't try to give an explanation.
5. Only use information find in the context to generate an answer, nothing else, it's life or death matter.
6. Remember not to break character and only reply from context
7. Don't reply out of character

{context}  Question: {question} Helpful answer in markdown:

from dialoqbase.

n4ze3m avatar n4ze3m commented on June 12, 2024

Closing this issue. If you have any doubts or issues, feel free to reopen or create a new one. :)

from dialoqbase.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.