Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GPT4All Java Bindings and supported models list #216

Merged
merged 27 commits into from
Jul 3, 2023
Merged
Show file tree
Hide file tree
Changes from 26 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
f5058b6
Generic AI client and models with open-ai client impl from https://gi…
raulraja Jun 21, 2023
a629d15
type LLM models based on their capabilities and type the operations
raulraja Jun 21, 2023
471497a
add token as parameter to `openAI` fn falling back to env variable
raulraja Jun 22, 2023
dd47c87
add config as optional parameter
raulraja Jun 22, 2023
da80199
Merge branch 'main' into open-ai-typed-models
raulraja Jun 22, 2023
76d0e9e
remove old config
raulraja Jun 22, 2023
f631907
Merge remote-tracking branch 'origin/main' into open-ai-typed-models
raulraja Jun 26, 2023
5d44d36
Merge remote-tracking branch 'origin/main' into open-ai-typed-models
raulraja Jun 28, 2023
3fe0656
adapt to latest changes from main and new java module
raulraja Jun 28, 2023
4a89c79
Merge branch 'main' into open-ai-typed-models
nomisRev Jun 29, 2023
6feeffa
Merge remote-tracking branch 'origin/main' into open-ai-typed-models
raulraja Jun 29, 2023
7512191
have openai be its own module that depends on xef-core. kotlin, scala…
raulraja Jun 29, 2023
d6c9f18
Merge remote-tracking branch 'origin/open-ai-typed-models' into open-…
raulraja Jun 29, 2023
1103cdc
fix bug in scala fn name for serialization
raulraja Jun 29, 2023
bd097c0
make AIClient : AutoCloseable
raulraja Jun 29, 2023
ef1c24c
Rename enum cases
raulraja Jun 29, 2023
c5a70f0
Rename to TEXT_EMBEDDING_ADA_002
raulraja Jun 29, 2023
e849bff
Fix AIClient close expectation
raulraja Jun 29, 2023
a586637
Progress with models
raulraja Jun 30, 2023
4800420
Refactor to have models typed and increase ergonomics
raulraja Jul 1, 2023
4b902ab
Merge remote-tracking branch 'origin/main' into gpt-4all-aiclient
raulraja Jul 1, 2023
8f5d9cb
Loading embeddings and tokenizer from huggingface, dynamic loading of…
raulraja Jul 2, 2023
99bdb64
remove non used repositories
raulraja Jul 2, 2023
a1b8736
Fix functions model to GPT_3_5_TURBO_FUNCTIONS and example without AI…
raulraja Jul 2, 2023
48dccec
remove unused import
raulraja Jul 2, 2023
b238450
GPT4All Java Bindings and supported models list + std out streaming s…
raulraja Jul 3, 2023
dbc03de
Merge remote-tracking branch 'origin/main' into gpt4all-java-bindings
raulraja Jul 3, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions core/src/commonMain/kotlin/com/xebia/functional/xef/auto/AI.kt
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
package com.xebia.functional.xef.auto

import com.xebia.functional.xef.AIError
import com.xebia.functional.xef.llm.AIClient
import com.xebia.functional.xef.vectorstores.VectorStore

@DslMarker annotation class AiDsl

/**
* An [AI] value represents an action relying on artificial intelligence that can be run to produce
* an `A`. This value is _lazy_ and can be combined with other `AI` values using
Expand All @@ -18,10 +14,3 @@ typealias AI<A> = suspend CoreAIScope.() -> A

/** A DSL block that makes it more convenient to construct [AI] values. */
inline fun <A> ai(noinline block: suspend CoreAIScope.() -> A): AI<A> = block

suspend fun <A> AIScope(runtime: AIRuntime<A>, block: AI<A>, orElse: suspend (AIError) -> A): A =
try {
runtime.runtime(block)
} catch (e: AIError) {
orElse(e)
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package com.xebia.functional.xef.auto

@DslMarker annotation class AiDsl
Loading