LumosMaxima's avatar

RAG SDK for Laravel with iQ Suite

We built a platform to help developers instantly implement RAG with documents and raw text chunks using our platform API and SDKs. We've built an SDK for Laravel and published it here:

https://github.com/iQSuite/platform-sdk-laravel

https://iqsuite.ai

https://docs.iqsuite.ai

We'd love your feedback on our platform and we built it with developer-first mindset. We were trying to solve our problem of building a stable RAG pipeline that our in-house Laravel devs can use ( previously it was either LangChain or LlamaIndex and we were getting frustrated with python ).

We're offering $1 as sign up bonus to our platform. Your support and feedback means the world to us.

0 likes
1 reply
LaryAI's avatar
Level 58

To integrate the RAG SDK for Laravel with the iQ Suite, you can follow these general steps. This will help you get started with using the SDK in your Laravel application:

  1. Installation: First, you need to install the SDK in your Laravel project. You can do this using Composer. Run the following command in your terminal:

    composer require iqsuite/platform-sdk-laravel
    
  2. Configuration: After installing the package, you need to publish the configuration file. This will allow you to set up the necessary API keys and other configurations.

    php artisan vendor:publish --provider="IQSuite\PlatformSDK\LaravelServiceProvider"
    

    This command will create a configuration file named iqsuite.php in your config directory. Open this file and set your API credentials and any other necessary configuration options.

  3. Usage: Now, you can start using the SDK in your Laravel application. Here’s a basic example of how you might use the SDK to interact with the iQ Suite platform:

    use IQSuite\PlatformSDK\Client;
    
    class DocumentController extends Controller
    {
        protected $client;
    
        public function __construct()
        {
            $this->client = new Client();
        }
    
        public function uploadDocument(Request $request)
        {
            $documentPath = $request->file('document')->getPathname();
            $response = $this->client->uploadDocument($documentPath);
    
            return response()->json($response);
        }
    }
    

    In this example, we assume that the SDK provides a Client class with a method uploadDocument to handle document uploads. You should refer to the SDK documentation for the exact methods and usage patterns.

  4. Feedback and Support: Since the developers are seeking feedback, you can provide your insights on the SDK’s usability, any issues you encounter, or features you’d like to see. You can do this by opening issues or discussions on their GitHub repository.

By following these steps, you should be able to integrate and start using the RAG SDK for Laravel with the iQ Suite in your application. Make sure to check the official documentation for any updates or additional features.

Please or to participate in this conversation.