Thanks to visit codestin.com
Credit goes to github.com

Skip to content
forked from abcsys/libem

An open-source compound AI toolchain for fast and accurate entity matching, powered by LLMs.

License

Notifications You must be signed in to change notification settings

zenodflow/libem

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Libem

Libem is an open-source compound AI toolchain for fast and accurate entity matching, powered by LLMs.

Installation

make install

Update ~/.libem/config.yaml with

OPENAI_API_KEY: your key

Optionally, to support browsing:

GOOGLE_CSE_ID: your key

And:

GOOGLE_API_KEY: your key

To run the sample example.

make run

You can also install libem library with pip:

pip install libem

Usage

import libem

libem.match("apple", "orange")

In shell:

libem apple orange

Conventions

Libem enforces a strict naming convention for a toolchain and the tool access methods. Toolchain's main methods are defined in the interface.py and exposed at the toolchain level. For example, the following code will import the tune tool in libem toolchain.

from libem import tune

To import the libem.tune toolchain, we must explicitly invoke:

import libem

tune = libem.toolchain("libem.tune") 

Note that this does not prevent us from importing the tools in the toolchain directly:

from libem.tune import learn

In a nutshell, one can directly import a toolchain's tools but not the tool's module. This is to encourage (but not enforce) that tools are always accessed via well-defined methods consistent with the LM access.

About

An open-source compound AI toolchain for fast and accurate entity matching, powered by LLMs.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 83.8%
  • JavaScript 11.1%
  • CSS 4.4%
  • Other 0.7%