An open API service indexing awesome lists of open source software.

https://github.com/webup/langchain-in-action

《LangChain 实战》配套实验示例代码
https://github.com/webup/langchain-in-action

Last synced: about 1 year ago
JSON representation

《LangChain 实战》配套实验示例代码

Awesome Lists containing this project

README

          

# LangChain in Action

《LangChain 实战》配套示例代码

## 官方文档

- LangChain Python
- 文档:https://python.langchain.com/
- 源码:https://github.com/langchain-ai/langchain

- LangChain JS/TS
- 文档:https://js.langchain.com/
- 源码:https://github.com/langchain-ai/langchainjs

- Chat LangChain:
- https://chat.langchain.com/
- 源码:https://github.com/langchain-ai/chat-langchain

## 环境准备

- VS Code
- 下载:https://code.visualstudio.com/
- Jupyter Notebooks in VS Code:https://code.visualstudio.com/docs/datascience/jupyter-notebooks

- Ollama
- 下载:https://ollama.com
- 源码:https://github.com/ollama/ollama
- 文档:https://github.com/ollama/ollama/tree/main/docs
- 模型
- Llama 2 Chinese:https://ollama.com/library/llama2-chinese
- Mistral:https://ollama.com/library/mistral
- Yi:https://ollama.com/library/yi
- Qwen:https://ollama.com/library/qwen

## 实战示例

- [角色扮演写作实战](./use-cases/role-play.ipynb)
- [多媒体资源的摘要实战](./use-cases/summerization.ipynb)
- [面向文档的对话机器人实战](./use-cases/doc-chatbot.ipynb)
- [自然语言交流的搜索引擎实战](./use-cases/web-search.ipynb)

## 快速原型

- Streamlit
- 文档:https://docs.streamlit.io
- 源码:https://github.com/streamlit/streamlit
- Streamlit Community Cloud:https://share.streamlit.io
- 示例
- [中文小故事生成器](./fast-build/my_streamlit_example1.py)
- [实时交互的 ReAct Agent](./fast-build/my_streamlit_example2.py)

- Chainlit
- 文档:https://docs.chainlit.io
- 源码:https://github.com/Chainlit/chainlit
- 示例
- [渊博的历史学家](./fast-build/my_chainlit_example1.py)
- [交互式文档对话机器人](./fast-build/my_chainlit_example2.py)

## 生态工具

- LangSmith
- 网站:https://smith.langchain.com
- 文档:https://docs.smith.langchain.com
- LangChain Hub:https://smith.langchain.com/hub

- LangServe
- 文档:https://python.langchain.com/docs/langserve
- 源码:https://github.com/langchain-ai/langserve
- 示例
- [角色扮演写作应用部署](./eco-tools/serve.py)

- LangChain CLI
- 文档:https://github.com/langchain-ai/langchain/blob/master/libs/cli/DOCS.md
- 源码:https://github.com/langchain-ai/langchain/tree/master/libs/cli

- LangChain Templates
- 模板库:https://templates.langchain.com/
- 文档:https://python.langchain.com/docs/templates/
- 源码:https://github.com/langchain-ai/langchain/tree/master/templates
- 示例
- [《LangChain 实战》模板](./eco-tools/template/)

- LangGraph
- 文档:https://python.langchain.com/docs/langgraph
- 源码:https://github.com/langchain-ai/langgraph

## 其他框架

- LlamaIndex:https://github.com/run-llama/llama_index
- AutoGen:https://github.com/microsoft/autogen