Skip to content

DAGE-107: Add a script to download bbc news dataset and support batch indexing in docker-services#250

Merged
nseidan merged 3 commits into
dataset-generatorfrom
DAGE-106_larger_dataset
Oct 28, 2025
Merged

DAGE-107: Add a script to download bbc news dataset and support batch indexing in docker-services#250
nseidan merged 3 commits into
dataset-generatorfrom
DAGE-106_larger_dataset

Conversation

@nseidan

@nseidan nseidan commented Oct 23, 2025

Copy link
Copy Markdown
  • Added a script to download a large bbc news dataset
  • Added support for batch indexing in docker-services solr-init.py
  • Updated READMe

@nseidan nseidan changed the title DAGE-107: Support batch indexing in docker-services DAGE-107: Add a script to download bbc news dataset and support batch indexing in docker-services Oct 23, 2025

@nicolo-rinaldi nicolo-rinaldi left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the typos in the README and thanks for spotting them. I left minor comments

truncated: str = txt[:CONTENT_MAX_LEN]

next_dot = txt.find('.', CONTENT_MAX_LEN)
if next_dot != -1 and next_dot - CONTENT_MAX_LEN < 200:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this case, if we find a dot after the max len can become 1200, right?
Maybe we can check the last dot backward, so we keep the content len under CONTENT_MAX_LEN

@nseidan nseidan Oct 24, 2025

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

right, its max is 1200, because the reason is i noticed there is a long sentence which sometimes reaches at least 1100 and in case if we remove the sentence which reaches the last sentence after reaching 1000 chars and the content becomes around 800. That's why I set upper bound to 1200. But on average I saw about 1100 chars per content. Anyways, it is changeable.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For me is fine like it is right now, indeed I approved. So feel free to keep it like this. The only thing is that when I read the code, CONTENT_MAX_LEN is set to 1000 but the "actual one" is 1200 (i.e., I often end up with more than 1k chars), since we are addressing the problem of finding the first dot after 1000. But this is just a little thing. I don't want to block anything

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated the code for readability

Comment thread rre-tools/src/rre_tools/embedding_model_evaluator/main.py Outdated
Comment thread rre-tools/docker-services/solr-init/solr_init.py Outdated
parser.add_argument('--filename', type=str, default='dataset.json', help='Output filename')
args = parser.parse_args()

months = ['2025-06', '2025-05', '2025-04', '2025-03', '2025-02', '2025-01',

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about something like

months = [
   f"{date.year}-{date.month}"
   for date in range (<something from X to Y increasing every month>)
]

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

@nseidan nseidan merged commit d2cdd49 into dataset-generator Oct 28, 2025
3 checks passed
@nseidan nseidan deleted the DAGE-106_larger_dataset branch October 28, 2025 02:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants