npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

dochain

v1.0.5

Published

dochain is a langchain plugin for docs task

Downloads

2

Readme

dochain

dochain 是一个 langchain 插件,用于文档任务。dochain 也是一个命令行工具,提供便捷的文档管理,文档和图片多模态理解、文档资源上传和搜索。

安装

npm install dochain -g

命令行用法

dochain [options] 可用的命令:

  1. 会话模式:通过运行 dochain chat 命令,进入会话模式,可以与程序进行交互式对话。

  2. 翻译:通过运行 dochain translate 命令,可以输入要翻译的内容,程序将返回翻译结果。

  3. 绘图模式:通过运行 dochain image 命令,进入绘图模式。可以通过命令行参数或交互式输入描述图片的内容,程序将生成对应的图片。

  4. 文件上传:通过运行 dochain store 命令,可以上传文件到指定的存储空间。可以通过命令行参数或交互式输入指定要上传的文件。

  5. 图片理解解释:通过运行 dochain understand 命令,进行图片理解解释。可以通过命令行参数或交互式输入图片的地址和描述,程序将返回对图片的理解解释。

通过运行不同的命令和提供相应的参数,可以实现不同的操作。请注意,具体的命令和参数使用方式可以参考命令行工具的帮助文档或使用 --help 参数获取更多信息。

其他信息

dochain 依赖于 langchain,一个用于构建语言模型应用程序的框架。

dochain 目前支持的文本格式有:

  • Markdown
  • HTML
  • 纯文本

dochain 使用的嵌入方法有:

  • BERT
  • GPT-3
  • 等等

dochain 支持的搜索引擎有:

  • Annoy
  • Faiss
  • 等等

需要配置的环境变量

## 默认向量
export EMBEDDING_VENDOR="wenxin"

## 百度云
export BCE_AK="";
export BCE_SK="";
export BCE_BUCKET="";
export BAIDU_API_KEY=""
export BAIDU_SECRETE_KEY=""

## 阿里云
export DASHSCOPE_API_KEY="sk-"

## 搜索接口
export SEARCH_API_KEY=""