Coder Social home page Coder Social logo

Support for optional documents metadata like "source file", "date created" etc. while indexing, to show them when searching about ragatouille HOT 7 CLOSED

tm17-abcgen avatar tm17-abcgen commented on July 19, 2024
Support for optional documents metadata like "source file", "date created" etc. while indexing, to show them when searching

from ragatouille.

Comments (7)

adharm avatar adharm commented on July 19, 2024 4

I'm taking a stab at this here.

I'll finish up the tests in the next day or so, and open a PR.

from ragatouille.

LarsAC avatar LarsAC commented on July 19, 2024 1

Ouch, saw this issue yesterday and started planning an implementation. Just got started so almost saw your note in time @anirudhdharmarajan ...

from ragatouille.

0-hero avatar 0-hero commented on July 19, 2024 1

Looking forward for your implementation. @anirudhdharmarajan

from ragatouille.

adharm avatar adharm commented on July 19, 2024 1

PR's up, would love any feedback on the approach I took for this (and a couple other related things that got pulled in 😅

from ragatouille.

bclavie avatar bclavie commented on July 19, 2024 1

Live in 0.0.5a thanks to @anirudhdharmarajan's amazing work!

cc @LarsAC @0-hero @tm17-abcgen

from ragatouille.

0-hero avatar 0-hero commented on July 19, 2024 1

Thankyou, just raised a PR on llama-hub too run-llama/llama-hub#893

from ragatouille.

bclavie avatar bclavie commented on July 19, 2024

Hey!

We don't currently support this, but it'd be relatively simple to add (though take more space on-disk!).

Right now, when an independent is create, we also export a collection.json, which contains all the documents inside it. This is useful so we can return the document: the index only store the passage ids (they correspond to the indices in the list contained in collection.json)

Apart from limited time, there's nothing stopping us from also storing a metadata.json file, which would be a list of dictionaries (or of a Metadata Pedantic object exported to dict, for easier validation), where the entry at index i would contain the metadata associated with passage_id i.

If you'd like to try to implement this, feel free! Otherwise it's definitely on the list of nice-to-have features that we'll circle to eventually.

from ragatouille.

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.