{"repo":"5am-code/ada-laravel","free":true,"listed":false,"github":"https://github.com/5am-code/ada-laravel","clone":"git clone https://github.com/5am-code/ada-laravel.git","description":"This package allows you to enhance your Laravel applications by seamlessly integrating word embeddings.","language":"PHP","stars":104,"topics":["embeddings","laravel","vector","hacktoberfest"],"license":"MIT","category":"databases-storage","readme_excerpt":"ada-laravel The package ada-laravel allows you to enhance your Laravel applications by seamlessly integrating text embeddings and querying capabilities for your models. Utilizing OpenAI by default, it enables your models to generate and query embeddings using nearest neighbors techniques. This package requires a PostgreSQL database with the vector extension to store and manage these embeddings efficiently as well as at least Laravel 11. Originally created as a demo for the talk »Have you met ada? - Word Embeddings with Laravel and OpenAI« by Diana Scharf, this package is functional yet designed to encourage further development and contributions. [!WARNING] Please note that this package is still in development and may not be suitable for production use. Installation Ensure that your database is configured to use PostgreSQL with the vector extension. The package will enable the extension via a migration if it is not already enabled. You can publish the migrations (optional) and run them: This will enable the vector extension in your database and create a table embeddings to store the embeddings. Configuration Set the OpenAI API key in your .env file: Please note that you need an OpenAI key for API access, not just ChatGPT access. Optionally, you can publish the configuration file if you want to make changes to the default settings: The default configuration is as follows: If you want to implement your own engine to handle embeddings, you can create a new class that implements t","default_branch":null,"files":null,"tree":[],"storefront":"/r/5am-code","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/5am-code/ada-laravel/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}