Coder Social home page Coder Social logo

raphaelsty / neural-cherche Goto Github PK

View Code? Open in Web Editor NEW
325.0 6.0 17.0 3.17 MB

Neural Search

Home Page: https://raphaelsty.github.io/neural-cherche/

License: MIT License

Python 99.63% Makefile 0.37%
google language-model neural-search semantic-search sparseembed splade transformers colbert stanford

neural-cherche's Introduction

Hello ๐Ÿ‘‹

โ‚ Passionate about Language Models, Information Retrieval and Knowledge Graphs (PhD).

โ‚‚ Love modelizing things using ML. Still haven't found the killer feature yet.

โ‚ƒ Love sharing models using APIs.

โ‚„ Strong interest for databases and SQL.

โ‚… Strong interest for the retrieval augmented generation (RAG) paradigm -> cherche, neural-cherche, neural-tree

โ‚† My personal Knowledge Base is available here.

neural-cherche's People

Contributors

arthur-75 avatar bclavie avatar raphaelsty avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

neural-cherche's Issues

How did you train SparseEmbed?

First, awesome project!

How did you train your model at https://huggingface.co/raphaelsty/neural-cherche-sparse-embed? Did you train it from scratch? I found an old copy of your sparsembed library. Was that library used or was this repository? What data did your train on exactly?

I am surveying various sparse embedding models and SparseEmbed while interesting has very little code or docs beyond the original google paper. Any assistance would be appreciated. Thanks!

License

Hello, thank you for the fantastic work!
Could you please tell me the license of this repository?

Mismatch in documents embeddings size

Hi,

Thanks for the great work on the repo.

While attempting to encode documents using my custom dataset, I've encountered a discrepancy in the number of input docs and the number of embedding produced. For eg.

ranker_documents_embeddings = ranker.encode_documents(
    documents=documents, # total: 30452
    batch_size=batch_size,
)
print(len(ranker_documents_embeddings), len(documents)) #prints 30427 30452

Do you have any insight into what might be causing this issue?

Thanks

[Feature request] ColBERT V2

Hi @raphaelsty,

first of all, thanks a lot for your this project. I really appreciate its simplicity and effectiveness.

Question: do you have any plans to implement ColBERT V2?

Best wishes.

add_duplicates() got an unexpected keyword argument 'results'

Hey there !

I'm trying to run the "evaluate" demo code written in the documentation but I run into this error :

scores = add_duplicates(queries=queries, results=scores)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: add_duplicates() got an unexpected keyword argument 'results'

And when looking in the library code, at the neural_cherche/utils/evaluate.py path, we can see that the add_duplicates function has 2 params : queries and scores but not 'results'.

Otherwise, thanks for the library, excellent work ๐Ÿ‘ !

Questions about model evaluation

When I used the pre-trained model 'raphaelsty/neural-cherche-sparse-embed' to evaluate the dataset, specifically, the arguana dataset, with a retrieval k value of 100, the result was very poor
{'map': 0.033567943638956016,
'ndcg@10': 0.042417859280348115,
'ndcg@100': 0.08691780846498275,
'recall@10': 0.09815078236130868,
'recall@100': 0.32147937411095306}
As shown above, ndcg is only 4.2%

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.