homanp / langchain-ui Goto Github PK
View Code? Open in Web Editor NEW🧬 The open source chat-ai toolkit
Home Page: https://langchain-ui.vercel.app
License: MIT License
🧬 The open source chat-ai toolkit
Home Page: https://langchain-ui.vercel.app
License: MIT License
Add PDF type of documents as datasource
When a user
signups for the first time a UserProfile
entry should be created in the database.
UserProfile
Prisma schema.UserProfile
object for newly created accounts.Describe the bug
Requests to the ConversationChain sporadically returns Network Error
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Network Error
should not be triggered.
in node_modules\langchain\dist\util\axios-fetch-adapter.js
langchain link openapi default by fetch not axios.post
stageOne = await fetch(request)
I try https-proxy-agent but not work.
So if you have any method to change proxy in fetch adapter?
By the way,clash for windows global mode did not change nodejs network proxy.
Describe the bug
react-markdown
doesn't render code blocks properly when streaming the response.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The code block renderer should apply.
Screenshots
If applicable, add screenshots to help explain your problem.
A user should be redirected to app
after successful authentication
Move Agents and Chain API to use Python.
The LangchainJS API is missing some core features such as QA over longer documents using Agents. In order to utilize this we need to migrate the invocation API to LangchainPy.
Describe the bug
When the LLM is writing long messages the window should scroll to the bottom of that message so the user doesn't have to scroll to see new tokens
coming in.
To Reproduce
Steps to reproduce the behavior:
Expected behaviour
The chat window should adaptively scroll to show the last token streamed.
It would be amazing to show progress to everyone interested in this project.
Add a Roadmap with checkboxes to the README. Example: https://github.com/peterheesterman/chit#roadmap
Add possibility for the user to create Agents and connect them to chatbots
and other tools.
A user should be able to create Agents in a simple ans straightforward way.
(Write your answer here.)
The UI focus on connecting different Tools and chains to the agent.
Add support for Vectorestores
Add support for vectorestores to support future document ingestion.
API endpoints should be secured behind an access_token unique for a User
.
Add memory to chatbots
A user should be able to create and save LangChain compatible Prompt templates
as per the specification here: https://python.langchain.com/en/latest/modules/prompts/prompt_templates.html
create
, update
or destroy
Prompt templates for further user down-stream in Agents of Chats.from langchain import PromptTemplate
template = """
I want you to act as a naming consultant for new companies.
Here are some examples of good company names:
- search engine, Google
- social media, Facebook
- video sharing, YouTube
The name should be short, catchy and easy to remember.
What is a good name for a company that makes {product}?
"""
prompt = PromptTemplate(
input_variables=["product"],
template=template,
)
The app boilerplate looks as follows. Perhaps a list/detail view would be appropriate for this.
LangChain UI needs an app icon.
svg
or png
formatWhen a user creates a Prompt template
the variable inputs used in the prompt should be visualised.
Show the input variables as Chakra Tags
underneath the text input.
Multiple places, switched use of [] vs () in Markdown.
The reference to the API repo is incorrect, is pointing to self repo.
Add a sidebar and main layout under the app
folder.
I encountered an error with the NextAuth.js adapter while attempting to retrieve user information from the database during the OAuth callback handler. The error message indicates that there is an issue with the findUnique method, which is being called on an undefined object. Here's the error message:
[next-auth][error][adapter_error_getUserByAccount] https://next-auth.js.org/errors#adapter_error_getuserbyaccount Cannot read properties of undefined (reading 'findUnique') {
message: "Cannot read properties of undefined (reading 'findUnique')",
stack: "TypeError: Cannot read properties of undefined (reading 'findUnique')\n" +
' at getUserByAccount (/home/cueva/langchain-ui/node_modules/@next-auth/prisma-adapter/dist/index.js:11:45)\n' +
' ...
This issue seems to be caused by an incorrect configuration of the adapter or an issue with the database itself.
Steps to reproduce:
Navigate to the login page
Click on the login button and select the OAuth provider
Enter the credentials and submit the form
Encounter the error message
Expected behavior:
The user should be able to successfully log in using the OAuth provider.
Actual behavior:
Encounter an error with the NextAuth.js adapter when attempting to retrieve user information from the database during the OAuth callback handler.
Environment:
NextAuth.js version: [insert version number here]
Operating system: [insert operating system name and version here]
Database: [insert database name and version here]
Other relevant information: [insert any other relevant information here]
Thank you for your help in resolving this issue.
Memory should only take into account the last 5 messages for performance reasons.
Only fetch the five last messages and feed into BufferMemory
Describe the bug
I get a 404
when trying to access settings
To Reproduce
Steps to reproduce the behavior:
Settings
404
Screenshots
##Summary
Create pages for the following LangChain objects:
Describe the bug
To many Prisma
connections
A chatbot should be able to ingest a Prompt template
.
Whenever a user chooses a Prompt template
from the chatbot sidebar this prompt template should be passed to the chatbot.
LangChain UI
needs a nice landing page. Preferably located in /
.
A user should be able to CREATE, UPDATE and DESTROY prompt templates.
Setup NextJS, preferably using appDir
.
So I have a bunch of chat transcripts as text files. Looks like I need to convert these chat transcripts into a CSV. What should the CSV look like?
Good afternoon. I am trying to run the application in my Gitbub codespace and I am getting the following error.
I have followed the instructions in your repository.
I have doubts about the .ENV file.
I have only completed the following....
NEXT_PUBLIC_GITHUB_ID=
NEXT_PUBLIC_GITHUB_SECRET=
OPENAI_API_KEY=
Are the rest of the configs mandatory?
Also, I had a question about the setup in Github with the Authorization callback URL.(not sure url to put in)
The error in the application in the browser is as follows:
Server Error
Error: @prisma/client did not initialize yet. Please run "prisma generate" and try to import it again.
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues
This error happened while generating the page. Any console logs will be displayed in the terminal window.
Source
new PrismaClient
file:///C:/Users/jmery/Downloads/botmanager/langchain-ui/node_modules/.prisma/client/index.js (3:11)
And in the console it shows me the following:
[next-auth][error][SIGNIN_OAUTH_ERROR]
https://next-auth.js.org/errors#signin_oauth_error client_id is required {
error: {
message: 'client_id is required',
stack: 'TypeError: client_id is required\n' +
' at new BaseClient (/workspaces/langchain-ui/node_modules/openid-client/lib/client.js:178:13)\n' +
' at new Client (/workspaces/langchain-ui/node_modules/openid-client/lib/client.js:1789:7)\n' +
' at openidClient (/workspaces/langchain-ui/node_modules/next-auth/core/lib/oauth/client.js:28:18)\n' +
' at getAuthorizationUrl (/workspaces/langchain-ui/node_modules/next-auth/core/lib/oauth/authorization-url.js:70:49)\n' +
' at Object.signin (/workspaces/langchain-ui/node_modules/next-auth/core/routes/signin.js:38:60)\n' +
' at AuthHandler (/workspaces/langchain-ui/node_modules/next-auth/core/index.js:253:39)\n' +
' at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n' +
' at async NextAuthHandler (/workspaces/langchain-ui/node_modules/next-auth/next/index.js:24:19)\n' +
' at async /workspaces/langchain-ui/node_modules/next-auth/next/index.js:60:32',
name: 'TypeError'
},
providerId: 'github',
message: 'client_id is required'
Thanks for your help and amazing job.
Sorry my poor english
Currently it's difficult for non-technical users to setup a chatbot for different purpose via langchain, because it requires them to setup environment, understand the purpose of different components (e.g. prompt template, chain, etc.). HMW lower the barrier for them?
A user
should be able to theme their chatbot interface (similar to other chat apps like Telegram)
Theme support should be programmable by the user so anyone can create a theme for a chatbot.
The user needs a view from where they can create chatbots.
List and detail view for creating, editing and querying chatbots.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.