GithubHelp home page GithubHelp logo

Data from Solr about haystack HOT 4 CLOSED

adjouama avatar adjouama commented on May 15, 2024 2
Data from Solr

from haystack.

Comments (4)

tholor avatar tholor commented on May 15, 2024 1

Hey @adjouama,

We currently don't have Solr integrated. However, as Haystack is completely modular, it would definitely be possible to do that.

What you would need to do:

  1. Implement a SolrDocumentStore
    You could take the ElasticsearchDocumentStore as an example and adjust it to Solr.
    This will be the major work, but you won't need all of the implemented functions there (e.g. query_by_embedding is not mandatory). The documentstore is needed for indexing docs, triggering queries and storing the mapping of fields from DB to haystack Documents

  2. Implement a SolrRetriever (or use the in-memory TfidfRetriever for smaller prototyping)
    The retriever could be rather light-weight, e.g. consider the basic ElasticsearchRetriever which has only ~ 6 lines of code.

The other major components (Reader, Finder ...) are independent of this and will work out-of-the-box. We also plan to have some advanced Retrievers soon that are independent of the datastore.

Let us know if you want to tackle this in a PR. We are happy to support you along the way.

from haystack.

stale avatar stale commented on May 15, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs.

from haystack.

Always-prog avatar Always-prog commented on May 15, 2024

Hi @adjouama.
I also need to refactor the work haystack to it will work with Solr.
But, did you do it? And if you refactored haystack for Solr, can I use your code?
Thanks.

from haystack.

adjouama avatar adjouama commented on May 15, 2024

Hi @adjouama.
I also need to refactor the work haystack to it will work with Solr.
But, did you do it? And if you refactored haystack for Solr, can I use your code?
Thanks.

Hi @Always-prog , unfortunately I did not spend time on the Solr implementation. I moved all my data on Elasticsearch and I am very much satisfied about the result. I'd suggest that you migrate :)

from haystack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.