GithubHelp home page GithubHelp logo

Aggregations [ENHANCEMENT] about marqo HOT 3 OPEN

pandu-k avatar pandu-k commented on June 18, 2024
Aggregations [ENHANCEMENT]

from marqo.

Comments (3)

jess-lord avatar jess-lord commented on June 18, 2024

I think a unique set of values from a field would be useful too. For example:
doc1 tags: [red, blue]
doc2 tags: [blue]
doc3 tags: [yellow, blue]

mq.index.docs.tags().unique() -> [red, yellow, blue]

from marqo.

jess-lord avatar jess-lord commented on June 18, 2024

I am bumping into this requirement again and think I am going to have to start putting a special metadata/aggregation record into each of the marqo indexes as a workaround. Probably going to need to instroduce another persistance layer altogether now that I think about it.

It's a little more complex than the above example because I need to do a groupby group, e.g.
source_pdf1 -> docs -> tags: [red, blue]
source_pdf2 -> docs -> tags: [blue]
source_pdf3 -> docs -> [yellow, blue]

The goal is to count the number of pdfs that have docs with certain tags. Pdfs don't exist anymore, they are just another piece of metadata on the docs, but I hope the use case is clear.

from marqo.

sky-2002 avatar sky-2002 commented on June 18, 2024

@pandu-k Can't we integrate a separate package, for example - pandas or polars(for larger data) which could handle these aggregation calls. These tools are specifically designed for that, so we can maybe send/stream the data from marqo to these tools and perform the aggregations. Is this feasible?

from marqo.

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.