{"id":33236724,"url":"https://github.com/atgreen/cl-rag-example","last_synced_at":"2026-02-01T22:33:32.653Z","repository":{"id":230285669,"uuid":"778992350","full_name":"atgreen/cl-rag-example","owner":"atgreen","description":"A simple Common Lisp example of using LLMs with RAG ","archived":false,"fork":false,"pushed_at":"2024-04-06T19:14:00.000Z","size":19,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-06T20:23:59.785Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Common Lisp","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/atgreen.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}},"created_at":"2024-03-28T20:23:10.000Z","updated_at":"2024-04-06T20:24:02.772Z","dependencies_parsed_at":"2024-04-06T20:24:01.267Z","dependency_job_id":"8272ed10-b1b3-4f8f-8bc2-ac426119e69a","html_url":"https://github.com/atgreen/cl-rag-example","commit_stats":null,"previous_names":["atgreen/cl-rag-example"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/atgreen/cl-rag-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atgreen%2Fcl-rag-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atgreen%2Fcl-rag-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atgreen%2Fcl-rag-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atgreen%2Fcl-rag-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/atgreen","download_url":"https://codeload.github.com/atgreen/cl-rag-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atgreen%2Fcl-rag-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28993253,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-01T22:01:47.507Z","status":"ssl_error","status_checked_at":"2026-02-01T21:58:37.335Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-11-16T19:00:28.304Z","updated_at":"2026-02-01T22:33:32.648Z","avatar_url":"https://github.com/atgreen.png","language":"Common Lisp","readme":"# cl-rag-example\n\u003e A simple demo of LLM+RAG using Common Lisp and OpenAI\n\nThis simple demo ingests an annual shareholder report into a\n[Chroma](https://www.trychroma.com/) vector database, and then uses\nRAG-assisted generative AI to answer questions.\n\nTo support this task, we use:\n* [cl-embeddings](https://github.com/atgreen/cl-embeddings) for LLM embeddings.\n* [cl-completions](https://github.com/atgreen/cl-completions) for LLM completions.\n* [cl-chroma](https://github.com/atgreen/cl-chroma) for the vector DB interface.\n\nUsage\n------\n\nInstall `pdftotext`.  On Fedora, this is provided in the\n`poppler-utils` package.\n\nInstall all Lisp dependencies with [ocicl](https://github.com/ocicl/ocicl).\nTo make all of this work I had to submit fixes to `jzon` and\n`openapi-generator`, so you will need the very latest versions of\nthose systems.  They are all available in the ocicl repos.\n```\n$ ocicl install\n```\n\nNow examine `rag.lisp` to find the link to the earnings report we will\nanalyze.  Download it.\n\nDownload and install the Chroma vector DB:\n```\n$ pip install chromadb\n$ chroma run\n```\n\nGet an OpenAI API key, and set the `OPENAI_API_KEY` environment variable.\n```\n$ export OPENAI_API_KEY=sk-dfgdfgdfgsdjhgdkjfghskdjfhgdskjfhgkjhg\n```\n\nNow run the example:\n```\n$ sbcl --eval \"(asdf:load-system :rag)\" --eval \"(rag::run)\"\n```\n\nAuthor and License\n-------------------\n\n``cl-rag-example`` was written by [Anthony\nGreen](https://github.com/atgreen) and is distributed under the terms\nof the MIT license.\n","funding_links":[],"categories":["Machine Learning"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatgreen%2Fcl-rag-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatgreen%2Fcl-rag-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatgreen%2Fcl-rag-example/lists"}