forked from langchain4j/langchain4j
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
597 changed files
with
23,265 additions
and
5,529 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,45 @@ | ||
<!-- Thank you so much for your contribution! --> | ||
<!-- Please fill in all the sections below. --> | ||
|
||
<!-- Please open the PR as a draft initially. Once it is reviewed and approved, we will ask you to add documentation and examples. --> | ||
<!-- Please note that PRs with breaking changes will be rejected. --> | ||
<!-- Please note that PRs without tests will be rejected. --> | ||
|
||
## Context | ||
<!-- Please provide some context so that it is clear why this change is required. --> | ||
<!-- Please note that PRs will be reviewed based on the priority of the issues they address. --> | ||
<!-- We ask for your patience. We are doing our best to review your PR as quickly as possible. --> | ||
<!-- Please refrain from pinging and asking when it will be reviewed. Thank you for understanding! --> | ||
|
||
|
||
## Issue | ||
<!-- Please paste the link to the issue this PR is addressing. For example: https://github.com/langchain4j/langchain4j/issues/1012 --> | ||
|
||
|
||
## Change | ||
<!-- Please describe the changed you made. --> | ||
<!-- Please describe the changes you made. --> | ||
|
||
|
||
## Checklist | ||
Before submitting this PR, please check the following points: | ||
## General checklist | ||
<!-- Please double-check the following points and mark them like this: [X] --> | ||
- [ ] There are no breaking changes | ||
- [ ] I have added unit and integration tests for my change | ||
- [ ] All unit and integration tests in the module I have added/changed are green | ||
- [ ] All unit and integration tests in the [core](https://github.com/langchain4j/langchain4j/tree/main/langchain4j-core) and [main](https://github.com/langchain4j/langchain4j/tree/main/langchain4j) modules are green | ||
- [ ] I have manually run all the unit and integration tests in the module I have added/changed, and they are all green | ||
- [ ] I have manually run all the unit and integration tests in the [core](https://github.com/langchain4j/langchain4j/tree/main/langchain4j-core) and [main](https://github.com/langchain4j/langchain4j/tree/main/langchain4j) modules, and they are all green | ||
<!-- Before adding documentation and example(s) (below), please wait until the PR is reviewed and approved. --> | ||
- [ ] I have added/updated the [documentation](https://github.com/langchain4j/langchain4j/tree/main/docs/docs) | ||
- [ ] I have added an example in the [examples repo](https://github.com/langchain4j/langchain4j-examples) (only for "big" features) | ||
- [ ] I have added my new module in the [BOM](https://github.com/langchain4j/langchain4j/blob/main/langchain4j-bom/pom.xml) (only when a new module is added) | ||
- [ ] I have added/updated [Spring Boot starter(s)](https://github.com/langchain4j/langchain4j-spring) (if applicable) | ||
|
||
## Checklist for adding new model integration | ||
<!-- Please double-check the following points and mark them like this: [X] --> | ||
- [ ] I have added my new module in the [BOM](https://github.com/langchain4j/langchain4j/blob/main/langchain4j-bom/pom.xml) | ||
|
||
|
||
## Checklist for adding new embedding store integration | ||
- [ ] I have added a {NameOfIntegration}EmbeddingStoreIT that extends from either EmbeddingStoreIT or EmbeddingStoreWithFilteringIT | ||
<!-- Please double-check the following points and mark them like this: [X] --> | ||
- [ ] I have added a `{NameOfIntegration}EmbeddingStoreIT` that extends from either `EmbeddingStoreIT` or `EmbeddingStoreWithFilteringIT` | ||
- [ ] I have added my new module in the [BOM](https://github.com/langchain4j/langchain4j/blob/main/langchain4j-bom/pom.xml) | ||
|
||
|
||
## Checklist for changing existing embedding store integration | ||
<!-- Please double-check the following points and mark them like this: [X] --> | ||
- [ ] I have manually verified that the `{NameOfIntegration}EmbeddingStore` works correctly with the data persisted using the latest released version of LangChain4j |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
name: Nightly Build | ||
|
||
on: | ||
schedule: | ||
- cron: '0 0 * * *' # daily at midnight UTC | ||
workflow_dispatch: | ||
|
||
jobs: | ||
java_build: | ||
strategy: | ||
matrix: | ||
java_version: [ 8, 11, 17, 21 ] | ||
include: | ||
- java_version: '8' | ||
included_modules: '-pl !langchain4j-local-ai,!langchain4j-milvus,!code-execution-engines/langchain4j-code-execution-engine-graalvm-polyglot,!langchain4j-cassandra,!langchain4j-infinispan,!langchain4j-neo4j,!langchain4j-opensearch,!langchain4j-azure-ai-search' | ||
- java_version: '11' | ||
included_modules: '-pl !langchain4j-local-ai,!langchain4j-milvus,!code-execution-engines/langchain4j-code-execution-engine-graalvm-polyglot,!langchain4j-infinispan,!langchain4j-neo4j' | ||
- java_version: '17' | ||
included_modules: '-pl !langchain4j-local-ai,!langchain4j-milvus,!code-execution-engines/langchain4j-code-execution-engine-graalvm-polyglot' | ||
- java_version: '21' | ||
included_modules: '-pl !langchain4j-local-ai,!langchain4j-milvus' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up JDK ${{ matrix.java_version }} | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: ${{ matrix.java_version }} | ||
distribution: 'temurin' | ||
cache: 'maven' | ||
|
||
- name: Authenticate to Google Cloud | ||
# Needed for langchain4j-vertex-ai and langchain4j-vertex-ai-gemini modules | ||
uses: 'google-github-actions/auth@v2' | ||
with: | ||
project_id: ${{ secrets.GCP_PROJECT_ID }} | ||
credentials_json: ${{ secrets.GCP_CREDENTIALS_JSON }} | ||
|
||
- name: Setup Testcontainers Cloud Client | ||
# Needed for langchain4j-ollama and other modules using testcontainers | ||
uses: atomicjar/testcontainers-cloud-setup-action@v1 | ||
with: | ||
token: ${{ secrets.TC_CLOUD_TOKEN }} | ||
|
||
- name: Build with JDK ${{ matrix.java_version }} | ||
run: mvn -B -U --fail-at-end ${{ matrix.included_modules }} verify | ||
env: | ||
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
AZURE_OPENAI_ENDPOINT: ${{ secrets.AZURE_OPENAI_ENDPOINT }} | ||
AZURE_OPENAI_KEY: ${{ secrets.AZURE_OPENAI_KEY }} | ||
AZURE_SEARCH_ENDPOINT: ${{ secrets.AZURE_SEARCH_ENDPOINT }} | ||
AZURE_SEARCH_KEY: ${{ secrets.AZURE_SEARCH_KEY }} | ||
COHERE_API_KEY: ${{ secrets.COHERE_API_KEY }} | ||
ELASTICSEARCH_CLOUD_API_KEY: ${{ secrets.ELASTICSEARCH_CLOUD_API_KEY }} | ||
ELASTICSEARCH_CLOUD_URL: ${{ secrets.ELASTICSEARCH_CLOUD_URL }} | ||
GCP_CREDENTIALS_JSON: ${{ secrets.GCP_CREDENTIALS_JSON }} | ||
GCP_LOCATION: ${{ secrets.GCP_LOCATION }} | ||
GCP_PROJECT_ID: ${{ secrets.GCP_PROJECT_ID }} | ||
GCP_VERTEXAI_ENDPOINT: ${{ secrets.GCP_VERTEXAI_ENDPOINT }} | ||
HF_API_KEY: ${{ secrets.HF_API_KEY }} | ||
JINA_API_KEY: ${{ secrets.JINA_API_KEY }} | ||
MILVUS_API_KEY: ${{ secrets.MILVUS_API_KEY }} | ||
MILVUS_URI: ${{ secrets.MILVUS_URI }} | ||
MISTRAL_AI_API_KEY: ${{ secrets.MISTRAL_AI_API_KEY }} | ||
MONGODB_ATLAS_USERNAME: ${{ secrets.MONGODB_ATLAS_USERNAME }} | ||
MONGODB_ATLAS_PASSWORD: ${{ secrets.MONGODB_ATLAS_PASSWORD }} | ||
MONGODB_ATLAS_HOST: ${{ secrets.MONGODB_ATLAS_HOST }} | ||
NOMIC_API_KEY: ${{ secrets.NOMIC_API_KEY }} | ||
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | ||
OPENAI_BASE_URL: ${{ secrets.OPENAI_BASE_URL }} | ||
PINECONE_API_KEY: ${{ secrets.PINECONE_API_KEY }} | ||
TAVILY_API_KEY: ${{ secrets.TAVILY_API_KEY }} | ||
WEAVIATE_API_KEY: ${{ secrets.WEAVIATE_API_KEY }} | ||
WEAVIATE_HOST: ${{ secrets.WEAVIATE_HOST }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,3 +37,4 @@ build/ | |
|
||
### .env files contain local environment variables ### | ||
.env | ||
langchain4j-core/target_test-classes/ |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.