{"id":24505158,"url":"https://github.com/levigo/blog-langchain4j","last_synced_at":"2025-03-15T08:32:16.662Z","repository":{"id":256929159,"uuid":"845549728","full_name":"levigo/blog-langchain4j","owner":"levigo","description":"Repo with examples for the blog","archived":false,"fork":false,"pushed_at":"2024-09-13T10:24:32.000Z","size":5539,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-04T13:46:12.998Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/levigo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-21T13:16:14.000Z","updated_at":"2024-09-13T10:24:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"3bd5d791-8153-4d63-8465-d11a668d9da0","html_url":"https://github.com/levigo/blog-langchain4j","commit_stats":null,"previous_names":["levigo/blog-langchain4j"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levigo%2Fblog-langchain4j","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levigo%2Fblog-langchain4j/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levigo%2Fblog-langchain4j/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levigo%2Fblog-langchain4j/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/levigo","download_url":"https://codeload.github.com/levigo/blog-langchain4j/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243707282,"owners_count":20334613,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-21T23:28:52.314Z","updated_at":"2025-03-15T08:32:16.632Z","avatar_url":"https://github.com/levigo.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# blog-langchain4j\nSome code snippets for my blogs ([see here](https://www.levigo.de/2024/09/12/langchain4j-llms-fuer-java/)). If you are interested in [langchain4j](https://github.com/langchain4j/langchain4j), I would recommend to take a look at [langchain4j examples](https://github.com/langchain4j/langchain4j-examples)\n\nThis project contains some spring boot junit tests for the langchain4j framework. Models for test can be configured via ``application.yaml``, those will be auto-pulled in the configured ollama instance by default if needed.\n\nMain beef is in the test classes themselves. So check the src/test/java folder for various use cases. More examples can be found as mentioned in the langchain4j-examples directly.\n\nSome of the tests include:\n- simple RAG chat bot\n- chat with memory (history)\n- Java Pojo extraction\n- Image recognition\n- Tests with VectorDB (in-memory + external pgvector if enabled)\n- FunctionCalling\n- ...\n\nIn the ``docker`` folder, a ``docker-compose.yaml`` can be found to start a local [Ollama](https://ollama.com/) instance. Also a [PGVector Postgres DB](https://github.com/pgvector/pgvector) and [OpenWebUI](https://github.com/open-webui/open-webui) is contained.\n\n# Running\nAs mentioned, simply run the test classes under src/test/java. If a local docker is running, the test should run without problems.\nRequired models will be pulled automatically if needed (this can be disabled via application.yaml).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flevigo%2Fblog-langchain4j","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flevigo%2Fblog-langchain4j","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flevigo%2Fblog-langchain4j/lists"}