{"id":28361683,"url":"https://github.com/maxidonkey/file2knowledge","last_synced_at":"2025-07-21T10:33:31.239Z","repository":{"id":295759163,"uuid":"991056024","full_name":"MaxiDonkey/file2knowledge","owner":"MaxiDonkey","description":"Delphi lab demonstrating OpenAI’s v1/responses endpoint with vector search, embeddings, and session-based chat. Hands-on GenAI integration.","archived":false,"fork":false,"pushed_at":"2025-06-18T13:43:24.000Z","size":2482,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-21T02:37:45.798Z","etag":null,"topics":["agentic-ai","async-await","asynchronous","chatbot","delphi","file-search","openai","promises","reasoning","response","web-search"],"latest_commit_sha":null,"homepage":"","language":"Pascal","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/MaxiDonkey.png","metadata":{"files":{"readme":"README.md","changelog":"Changelog.md","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,"zenodo":null}},"created_at":"2025-05-27T04:11:48.000Z","updated_at":"2025-06-18T13:43:27.000Z","dependencies_parsed_at":"2025-05-27T08:46:12.081Z","dependency_job_id":"f896635f-a8e5-4c88-930e-655f2a7d48fb","html_url":"https://github.com/MaxiDonkey/file2knowledge","commit_stats":null,"previous_names":["maxidonkey/file2knowledge"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/MaxiDonkey/file2knowledge","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaxiDonkey%2Ffile2knowledge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaxiDonkey%2Ffile2knowledge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaxiDonkey%2Ffile2knowledge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaxiDonkey%2Ffile2knowledge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MaxiDonkey","download_url":"https://codeload.github.com/MaxiDonkey/file2knowledge/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaxiDonkey%2Ffile2knowledge/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266285557,"owners_count":23905380,"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":["agentic-ai","async-await","asynchronous","chatbot","delphi","file-search","openai","promises","reasoning","response","web-search"],"created_at":"2025-05-28T14:08:42.492Z","updated_at":"2025-07-21T10:33:31.233Z","avatar_url":"https://github.com/MaxiDonkey.png","language":"Pascal","funding_links":[],"categories":[],"sub_categories":[],"readme":"# File2Knowledge\n![Delphi Next Gen Ready](https://img.shields.io/badge/Delphi--Next--Gen-ready-brightgreen)\n![GitHub](https://img.shields.io/badge/IDE%20Version-Delphi%2012-yellow)\n![GitHub](https://img.shields.io/badge/Updated%20on%20June%2014,%202025-blue)\n\nMini-lab Delphi/VCL open source to experiment with the `v1/responses endpoint` of the OpenAI API in a modern environment. \nClone \u0026 run: the app acts as a tutor for exploring my AI wrappers through the `file_search`, `embeddings`, and `chat` features.\n\n## Changelog\n\nTo review the latest changes, please refer to the [changelog](https://github.com/MaxiDonkey/file2knowledge/blob/main/Changelog.md).\n\n\u003e[!IMPORTANT]\n\u003e To perform the update, install [DelphiGenAI](https://github.com/MaxiDonkey/DelphiGenAI) version 1.1.0 and then recompile the project.\n\n## Introduction\n\n\u003e **Built with Delphi 12 Community Edition (v12.1 Patch 1)**  \n\u003eYou can compile and test it free of charge with Delphi CE; any recent commercial Delphi edition works as well.\n\nFile2knowledge was designed to provide a concrete implementation of the OpenAI API’s `v1/responses endpoint` (necessary for the agentic approach).\nIts main goal: to demonstrate how to leverage advanced file search (file_search) features and the use of vector stores to enhance the semantic processing of documents.\nThis approach enables more contextual, relevant, and intelligent responses when querying technical documentation, source code, or any other textual files.\n\n![Preview](https://github.com/MaxiDonkey/file2knowledge/blob/main/Images/F2KAni.gif?raw=true \"Preview\")\n\n## Quick Start\n\n```bash\ngit clone https://github.com/MaxiDonkey/file2Knowledge.git\n```\nopen WrapperAssistant.dproj     # Delphi 12 Athens\nPrerequisites: OpenAI API key\n\n## Dependencies\n- Add [DelphiGenAI (OpenAI wrapper)](https://github.com/MaxiDonkey/DelphiGenAI) version 1.1.0 to your Delphi project **Library Path** if not globally referenced\n- Delphi 12 Athens (or later)\n- WebView2 Runtime (EdgeView2 for VCL)\n- OpenAI API key (OPENAI_API_KEY)\n- Windows 11 MineShaft (custom VCL theme)\n\n![Preview](https://github.com/MaxiDonkey/SynkFlowAI/blob/main/Images/themis.png?raw=true \"Preview\")\n\n## Things You Should Know\n\n\n\n\u003e[!NOTE]\n\u003e Make sure to correctly set the **search path** to the `DelphiGenAI` wrapper in your Delphi project settings. This is required for proper compilation and integration.\n\n![Preview](https://github.com/MaxiDonkey/file2knowledge/blob/main/Images/Genai_path.png?raw=true \"Preview\")\n\n\u003eBefore running the client for the first time, make sure to place the appropriate DLL (32-bit or 64-bit) in the executable's directory. The required files are available in the repository.\n\n\u003e[!WARNING]\n\u003eTo access reasoning visualization with o-models, you must enable this feature in the Verification section of your [OpenAI account](https://platform.openai.com/settings/organization/general). The activation process takes only a few minutes.\n\n\u003e[!NOTE]\n\u003eTo access the uploaded files and active vector stores, go to the [dashboard](https://platform.openai.com/logs) then navigating to the `Storage` section.\n\n## Features\n\n- Upload .txt / .md → embeddings auto, Vector search handled by OpenAI\n\n- Persistent multi-turn chat (session history preserved)\n\n- JS-style Promises (TPromise\u003cT\u003e) and generalized IoC\n\n- UI VCL \u0026 WebView2\n\n- Session-based conversational chaining with OpenAI response IDs\n\n- Web research and reasoning.\n\n## License\n\nThis project is licensed under the [MIT](https://choosealicense.com/licenses/mit/) License.\n\n## Going further\n\n**Want the full architecture breakdown?**  \n\n[Read the deep-dive.md](https://github.com/MaxiDonkey/file2knowledge/blob/main/deep-dive.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxidonkey%2Ffile2knowledge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxidonkey%2Ffile2knowledge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxidonkey%2Ffile2knowledge/lists"}