Giter Site home page Giter Site logo

Explore LangChain about openadapt HOT 2 CLOSED

openadaptai avatar openadaptai commented on July 22, 2024
Explore LangChain

from openadapt.

Comments (2)

abrichr avatar abrichr commented on July 22, 2024 1

@micol-altomare you might enjoy this one 😄

from openadapt.

micol-altomare avatar micol-altomare commented on July 22, 2024

@abrichr Briefly, LangChain enhances LLMs (using OpenAI API, Hugging Face, etc.) by being able to connect them to source data (that's stored as vector embeddings, such as with the Pinecone API). We can also take advantage of two significant features: chaining and prompt templates.

The source data could take the form of:

  • patient data, health records, booking calendar (in a text format, related to #77)
  • bylaws, affidavits, other court documents (for law/policy researchers)
  • (keyboard) events from OpenAdapt (still exploring this)

LangChain's LLM could then interface with OpenAdapt in several ways:

1. (The user's source data and) LLM prompts informs the next workflow
Usecase example: a) connecting the LLM to a physician's entire database, b) asking the LLM to list which patients to see next based on outstanding treatment needs, last visit, etc., c) using OpenAdapt to book each patient, produce automated calls/emails to confirm appointments
Example: ask the LLM to choose what's the best workflow from a set of workflows
2. The workflow informs a) the prompt template itself; or b) the dynamic inputs
Example: LLM input -> perform a workflow that achieves a certain output -> use that output to inform LLM input for the next workflow
3. Asking LangChain to modify an existing workflow (eg. make the workflow more efficient)

Implementation:

My biggest considerations for LangChain use:

  • Scalability: Is it limited by the use of user-specific source data?

from openadapt.

Related Issues (20)

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.