Skip to content

Semantic search on the user intent. Similar to AI Algolia but way cheaper.

License

Notifications You must be signed in to change notification settings

spryker-community/ai-anything-search

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hackathon Project

Created by team Ai Pathfinder, WINNER of the September 2024 Spryker Hackathon.

Short Project Description

Semantic search on the user intent. Similar to AI Algolia but way cheaper.

Jury evaluation:

The team implemented multilingual semantic search, ensuring precise matches across languages. A well-organized team contributed significantly to the success, impressing the jury with the accuracy and relevance of the results.

📹 Team Demo

xxx

Pre-requisite

  1. To generate Gemini Api key click here

  2. Setup a Pinecone SaaS account click here

  3. Setup env variable:

    • GEMINI_API_KEY with key or add key in config/shared/config_default.php
    $config[AiAnythingEmbeddingConstants::GEMINI_API_KEY]  = 'api_key';
    • GEMINI_API_URL with API endpoint and model except API Key or add key in config/shared/config_default.php
    $config[AiAnythingEmbeddingConstants::GEMINI_API_URL] = 'api_url';
    • PINECONE_API_KEY with key or add key in config/shared/config_default.php
    $config[PineconeConstants::PINECONE_API_KEY]  = 'api_key';
  • PINECONE_API_VERSION with key or add key in config/shared/config_default.php

    $config[PineconeConstants::PINECONE_API_VERSION]  = 'api_version';
    • PINECONE_INDEX_URL with API endpoint or add key in config/shared/config_default.php

      $config[AiAnythingEmbeddingConstants::PINECONE_INDEX_URL] = 'api_url';
    
    

Modules and path

  1. delete your ELS index (console elasticsearch:index:delete) and rebuild it (console search:setup)
  2. re-sync your data to ELS (console sync:data)
  3. add the QueryExpanderPlugin (\Pyz\Client\AiAnythingSearch\Plugin\Catalog\UserIntentQueryExpanderPlugin) to \Pyz\Client\Catalog\CatalogDependencyProvider
  4. add the PublisherPlugin (xx) to \Pyz\Zed\Publisher\PublisherDependencyProvider

Setup

  1. clone the repository in your local

    git clone [email protected]:spryker-community/ai-anything-search.git
  2. clone docker sdk

     git clone https://github.com/spryker/docker-sdk.git --single-branch docker
  3. bootstrap the project

    docker/sdk bootstrap deploy.dev.yml
  4. start the project

       docker/sdk up

if you come across any installation error, please run following command:

        docker/sdk reset

caution: if you run this command, all the data stored in your spryker docker volumes will be destroyed.

Capabilities

  • xxx

How to use

About

Semantic search on the user intent. Similar to AI Algolia but way cheaper.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 72.7%
  • Twig 17.7%
  • SCSS 6.6%
  • TypeScript 1.8%
  • JavaScript 1.0%
  • HTML 0.2%