Skip to content

Khayaa/Laravel-OpenAI-PDF-Search

Repository files navigation

Laravel PDF Search with OpenAI Embeddings

This project is a Laravel application that utilizes OpenAI embeddings for searching through PDF documents. It allows you to convert PDF files into searchable vectors using OpenAI's text-embedding models, and perform efficient searches based on user input.

Features

  • Convert PDF files into text and extract relevant information.
  • Generate vector representations using OpenAI embeddings for efficient search.
  • Search through PDF documents using natural language queries.
  • Retrieve relevant chunks of text based on similarity scores.
  • Utilize cosine similarity for accurate search results.
  • Seamless integration with Laravel framework.

Requirements

  • PHP >= 7.4
  • Laravel >= 8.0
  • OpenAI API key

Installation

  1. Clone the repository.
  2. Install the required dependencies via Composer.
  3. Configure your OpenAI API key in the .env file.
  4. Run the database migrations.
  5. Start the Laravel development server.

For detailed installation instructions and usage examples, please refer to the documentation.

Contributing

Contributions are welcome! If you encounter any issues or have suggestions for improvements, please feel free to open an issue or submit a pull request.

Acknowledgements

This project relies on the power of OpenAI embeddings for text analysis and search capabilities. We would like to express our gratitude to the OpenAI team for providing such an amazing technology.

Contact

For any inquiries or questions, please contact [email protected]. We would be happy to assist you.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages