sbrunk / xef

Building applications with LLMs through composability, in Kotlin, Scala, ...

Home Page:https://xef.ai

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

xef.ai Maven Central

Bring modern AI everywhere!

xef is the one-stop library to bring the power of modern AI to your application or service, in the form of LLM (Large Language Models), image generation, and many others. Our goal is to make the move to this new world as simple as possible for the developer. xef.ai is packaged in two layers:

  1. Core libraries bringing integration with the basic services in an AI application. These libraries expose an idiomatic interface, so there's one per programming language. At this moment we support Kotlin and Scala.
  2. Integrations with other libraries which complement the core mission of xef.ai.

xef.ai draws inspiration from libraries like LangChain and community projects like Hugging Face.

⚠️ Data Transmission Disclosure

While this library is licensed under the Apache License, it's crucial to inform our users about specific data transmission behaviors associated with using this software.

This library may transmit source code and potentially user input data to third-party services as part of its functionality. We understand the paramount importance of data security and privacy, so we want to be upfront about these mechanisms.

Developers integrating this library into their applications should be aware of this behavior and take necessary precautions to ensure that sensitive data is not inadvertently transmitted.

We strongly recommend reviewing the third-party services' privacy policies before using this library, as their data handling practices may not align with your expectations or requirements.

You acknowledge and agree to these data transmission behaviors by using this library. Please consider this when planning your data management and privacy strategies.

πŸ›ŽοΈ Getting the Libraries

Libraries are published in Maven Central, under the com.xebia group.

  1. xef-kotlin for Kotlin support, xef-scala for Scala, xef-java for Java.
  2. The name of a library we provide integration for, like xef-lucene.
Kotlin logo Gradle (Kotlin DSL)

Libraries are published in Maven Central. You may need to add that repository explicitly in your build, if you haven't done it before.

repositories {
    mavenCentral()
}

Then add the library in the usual way.

// In Gradle Kotlin 
dependencies {
    implementation("com.xebia:xef-kotlin:<version>")
}

We publish all libraries at once under the same version, so version catalogs could be useful.

Scala logo SBT
libraryDependencies += "com.xebia" %% "xef-scala" % "<version>"

Warning xef-scala is currently only available for Scala 3, and depends on project Loom, so you will need at least Java 19 to use the library.

Maven logo Maven

Libraries are published in Maven Central. You may need to add that repository explicitly in your build, if you haven't done it before.

<dependency>
   <groupId>com.xebia</groupId>
   <artifactId>xef-java</artifactId>
   <version>x.x.x</version>
   <type>pom</type>
   <scope>runtime</scope>
</dependency>

πŸ“– Quick Introduction

In this small introduction we look at the main features of xef, including the ai function.

πŸš€ Examples

You can also have a look at the examples to have a feeling of how using the library looks like.

About

Building applications with LLMs through composability, in Kotlin, Scala, ...

https://xef.ai

License:Apache License 2.0


Languages

Language:Kotlin 98.8%Language:Scala 0.6%Language:Java 0.6%Language:Shell 0.0%