Skip to main content

NeuroQRS (Neuro Query Recommendation System) is Faiss + LLM based query recommender with auto-improvement using closed feedback loop

Project description

NeuroQRS

NeuroQRS (Neuro Query Recommendation System) is Faiss + LLM based query recommender with auto-improvement using closed feedback loop!

It works by first using faiss to check for any similar previous search, if not then it builds one using genai! XD

Installation

[Coming Soon] Install the neuroqrs package with pip:

$ pip install neuroqrs

Or install the latest package directly from github

$ pip install git+https://github.com/searchX/neuroqrs

Example Usage

from neuroqrs.main import NeuroQRS
neuroqrs = NeuroQRS()
async def main():
    ... statements
import asyncio
asyncio.run(main())
  1. Force fetch documents from chatgpt api (index + search mode)
print(await neuroqrs.query_and_index("nike casual ", "nike", {}, {}))
# Output: ['nike casual black', 'nike casual men', 'nike casual white', 'nike casual wear', 'nike casual shoes']
  1. Only do quick query without reindexing/genai
print(await neuroqrs.quick_query("nike casual ", "nike"))
# Output: ['nike casual black', 'nike casual men', 'nike casual white', 'nike casual wear', 'nike casual shoes']
  1. Try quick query, if data not avaliable then index and get results (combines above two)
print(await neuroqrs.query_maybe_index("nike casual ", "nike", {}, {}))
# Output: ['nike casual black', 'nike casual men', 'nike casual white', 'nike casual wear', 'nike casual shoes']

Please look into official docs for more information - https://searchx.github.io/neuroqrs/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

neuroqrs-0.1.4.tar.gz (5.1 kB view hashes)

Uploaded Source

Built Distribution

neuroqrs-0.1.4-py3-none-any.whl (6.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page