Home Explore Blog CI



ragit

RelNotes/0.3.1.md
0cefc84bfa1aecd39dd08f007afd6d522b71ea3b5b6bd24f0000000300000477
# ragit 0.3.1 release (hotfix)

2025-02-26

It's a hotfix, incorporating feedback received since the launch of version 0.3.0.

## Dependencies

No changes

## hotfix gh issue #8

[issue]

It does not fix the root cause of the [issue], but prevents the ragit from crashing.

In previous versions, `merge_and_convert_chunks` failed if there are multiple chunks that have the same `ChunkSource`. It threw an assertion error. I removed the assertions and added a dedicated test suite for the function.


## fetch images from web

Some markdown files want to fetch images from web, like `![image](https://some.url/image.png)`. Now ragit can handle such images. It first downloads the images to disk, then treats them like other images.

## `rag init`

Previously, `rag init` does not create `.ragit/models.json`. You had to run another command which calls `Index::load` which initializes `.ragit/models.json`. It doesn't make sense that you have to run an arbitrary command to get `models.json`. Now the json file is created at `rag init`.

## tests

2 tests are added: images3 and web_images.

Chunks
2d9951ba (1st chunk of `RelNotes/0.3.1.md`)
Title: Ragit 0.3.1 Release Notes
Summary
The ragit 0.3.1 release is a hotfix that addresses several issues, including preventing crashes, handling images from web URLs, and improving the 'rag init' command, with additional tests added for reliability.