-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation: Add simple "getting started" examples #141
Comments
You can use a ConversationChain, but you won't be able to customize the prompt or use tools it seems. With LLMChain, I've almost managed to do a simple ChatGPT-style bot. You have to add a ConversationBufferMemory, and the following PromptTemplate:
This has a few flaws: you still cannot use tools, and does fairly often dream up the rest of the conversation: but it might be a good starting point. |
@notpushkin Thanks for the hint. This seems to behave like ChatGPT: I think something like this should be included as a "Hello World" example in the documentation. |
This is definitely something we are lacking at the moment. We improved a lot of the code and added many simpler options to experiment with so now might be a good time for us to add these examples. @notpushkin the ConversationChain is essentially a LLMChain with a preconfigured prompt. In the case of the ConversationChain some improvements could be made. Keep an eye on #146. |
Tangential: I was able to get tools working if I drop conversation memory: langflow-tools-without-memory.json Bad news: when I add any kind of memory to the mix, I get the following error:
My best guess is, |
I hope that a template market can be realized, and everyone can contribute to the directory, just like the marketplaces of https://github.com/FlowiseAI/Flowise |
I think a simple method to add tutorials would just create an examples folder. Then export some working code. |
@frankjoshua I think that's what's going on in https://github.com/logspace-ai/langflow_examples? (e. g. see PR directly above your comment) I think this examples repo needs some more visibility though. |
We plan on publishing something about them really soon. We are just working on the docs first. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
pew |
It would be great if the documentation included a few minimal working examples to get started with.
For example, it wasn't intuitive to me how to recreate something similar to the ChatGPT web interface.
The text was updated successfully, but these errors were encountered: