Comments (4)
Hello, can you dive into the intermediary steps and open the prompt playground to inspect your prompt?
from chainlit.
Hi! I have dive into the prompt playground and the beggining of the prompt is written in English and has nothing to do with my document or my question. Here there is a little extract:
QUESTION: Which state/country's law governs the interpretation of the contract?
=========
Content: This Agreement is governed by English law and the parties submit to the exclusive jurisdiction of the English courts in relation to any dispute (contractual or non-contractual) concerning this Agreement save that either party may apply to any court for an injunction or other relief to protect its Intellectual Property Rights.
Source: 28-pl
Content: No Waiver. Failure or delay in exercising any right or remedy under this Agreement shall not constitute a waiver of such (or any other) right or remedy.
11.7 Severability. The invalidity, illegality or unenforceability of any term (or part of a term) of this Agreement shall not affect the continuation in force of the remainder of the term (if any) and this Agreement.
11.8 No Agency. Except as expressly stated otherwise, nothing in this Agreement shall create an agency, partnership or joint venture of any kind between the parties.
11.9 No Third-Party Beneficiaries.
Source: 30-pl
Content: (b) if Google believes, in good faith, that the Distributor has violated or caused Google to violate any Anti-Bribery Laws (as defined in Clause 8.5) or that such a violation is reasonably likely to occur,
Source: 4-pl
=========
FINAL ANSWER: This Agreement is governed by English law.
SOURCES: 28-pl
QUESTION: What did the president say about Michael Jackson?
=========
Content: Madam Speaker, Madam Vice President, our First Lady and Second Gentleman. Members of Congress and the Cabinet. Justices of the Supreme Court. My fellow Americans.
Last year COVID-19 kept us apart. This year we are finally together again.
Tonight, we meet as Democrats Republicans and Independents. But most importantly as Americans.
With a duty to one another to the American people to the Constitution.
And with an unwavering resolve that freedom will always triumph over tyranny.
from chainlit.
It seems that when building the prompt in the demo some templates from langchain are being written at the beggining of the promt
from chainlit.
Yes it looks like they are using "few shot prompting". By showing few examples to the LLM they try to teach it the correct format. You can probably modify that template but it looks more like a langchain question at that point :)
from chainlit.
Related Issues (20)
- Azure OpenAI support HOT 3
- chainlit use graphsignal err HOT 1
- -w argument in the chainlit run command doesn't work yet HOT 7
- Ability to add additional UI component types (e. g. new tab, custom code)
- AttributeError: module 'select' has no attribute 'epoll'. HOT 2
- "Waiting for thread pool to idle before working"? HOT 1
- Cannot run on macOS HOT 2
- Streaming=True not working when i integrate Langchain. HOT 3
- Really bad memory leak HOT 3
- Error: Invalid value: File does not exist: target.py HOT 3
- Why does the window that pops up locally after I specify the ip and port not display any content? HOT 21
- Feature request: Bind Actions / Ask Users to the TextArea input menu HOT 2
- Having the same issue here. Running on a linux server, no error message, just a blank page. Specifying the host and port did not help in any way. HOT 7
- LAN SSL requirement HOT 2
- It consumes a significant amount of computer resources. HOT 12
- [Bug] Getting spammed with SSL Handshake Error when ru HOT 7
- work without any api key HOT 2
- Setting up the chainlit environment locally HOT 1
- After running the chainlit run app.py getting the error "Could not reach the server" HOT 3
- Deploy in PythonAnywhere HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chainlit.