Giter Club home page Giter Club logo

dosco / llm-client Goto Github PK

View Code? Open in Web Editor NEW
536.0 536.0 30.0 3.19 MB

JS/TS library to make to easy to build with LLMs. Full support for various LLMs and VectorDBs, Agents, Function Calling, Chain-of-Thought, RAG, Semantic Router and more. Based on the popular Stanford DSP paper. Create and compose efficient prompts using prompt signatures. ๐ŸŒต ๐Ÿฆ™ ๐Ÿ”ฅ โค๏ธ ๐Ÿ––๐Ÿผ

Home Page: https://dosco.github.io/llm-client/

License: Apache License 2.0

TypeScript 100.00%
ai anthropic claude cohere gemini google gpt-4 javascript large-language-models llm nodejs ollama openai opensource rag together-compute typescript vectordb

llm-client's Issues

Allow to extend BaseAI

  • I'm submitting a ...
    [ ] bug report
    [X ] feature request
    [ ] question about the decisions made in the repository
    [ ] question about how to use this project

  • Summary

We have a special AI client that customizes existing AI like Anthropic, Bedrock and OpenAI. In order to use llm-client with them, it helps to build on top of llm-client and requesting to make it possible.

  1. BaseAI - https://github.com/dosco/llm-client/blob/main/src/ai/base.ts#L43 OR
  2. a better alternative.

Cohere AI provider error

I'm submitting a bug report

  • Summary
    The following code causes the exception: Cannot read properties of undefined (reading 'map'), this happens when calling a.forward
const ai = new Anthropic({
  apiKey,
});
const cot = new ChainOfThought(
  ai,
  `question:string -> answer:string`
);
const res = await a.forward({ question });

Create a discussion listing business workflows to target

  • I'm submitting a ...
    [ ] bug report
    [X] feature request
    [ ] question about the decisions made in the repository
    [ ] question about how to use this project

  • Summary
    Use Github discussions to start a discussion listing business workflow ideas we should target in this library. For example PII detection, Classification list for customer communications, Email communication rewriting, etc

Prompt to extract details and classify customer communication

  • I'm submitting a ...
    [ ] bug report
    [ X] feature request
    [ ] question about the decisions made in the repository
    [ ] question about how to use this project

  • Summary
    Build a new prompt to extract customer and product information. And to classify the customer communication.

Aws bedrock

  • I'm submitting a ...
    [ ] bug report
    [X ] feature request
    [ ] question about the decisions made in the repository
    [ ] question about how to use this project

  • Summary

Looking to add custom providers but immediately
looking for AWS Bedrock provider. Possible to add that?

This helps to integrate with new providers easily. Looking forward for an update soon.

Ask-Question.js

Dosco, in the examples folder you have an ask-questions.js file mentioned in the readme but the actual file example is not linked. This the file that shows how to use Google Search with your library. Any chance you can add it?

Documentation?

Hey guys,

First I wanted to start by thanking the repo owner for including example scripts and samples in the README. However, I was wondering if there is any link to documentation that describes all the methods and classes available. This would be helpful in understanding how to leverage the package for novel workflows that have not been covered by the samples yet.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.