memfreeme / memfree

MemFree - Hybrid AI Search Engine & AI Page Generator
https://www.memfree.me
MIT License
1.05k stars 166 forks source link

Refactor VectorSearch Class #104

Closed YadlaMani closed 3 weeks ago

YadlaMani commented 3 weeks ago

This PR optimizes the VectorSearch class by improving code readability and maintainability. Key changes include:

Introduced a private getter for URL construction. Used static constants for distance values. Replaced map with forEach for array population. Streamlined error handling.

github-actions[bot] commented 3 weeks ago

Thank you for submitting your pull request! 🙌 We'll review it as soon as possible. In the meantime, please ensure that your changes align with our CONTRIBUTING.md. If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! 😊

github-actions[bot] commented 3 weeks ago

🎉 Your pull request has been successfully merged! 🎉 Thank you for your valuable contribution to our project. Your efforts are greatly appreciated. Feel free to reach out if you have any more contributions or if there's anything else we can assist you with. Keep up the fantastic work! 🚀