Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(indexing)!: default LLM for pipeline and boilerplate Transformer macro #227

Merged
merged 11 commits into from
Aug 12, 2024

Conversation

timonv
Copy link
Member

@timonv timonv commented Aug 12, 2024

Add setting a default LLM for an indexing pipeline, avoiding the need to clone multiple times.

More importantly, introduced swiftide-macros with #[swiftide_macros::indexing_transformer] that generates
all boilerplate code used for internal transformers. This ensures all transformers are consistent and makes them
easy to change in the future. This is a big win for maintainability and ease to extend. Users are encouraged to use the macro
as well.

BREAKING CHANGE: Introduces WithIndexingDefaults and WithBatchIndexingDefaults trait constraints for transformers. They can be used as a marker
with a noop (i.e. just impl WithIndexingDefaults for MyTransformer {}). However, when implemented fully, they can be used to provide defaults from the pipeline to your transformers.

@timonv timonv changed the title feat(indexing): default LLM for pipeline feat(indexing): default LLM for pipeline and boilerplate Transformer macro Aug 12, 2024
@timonv timonv changed the title feat(indexing): default LLM for pipeline and boilerplate Transformer macro feat(indexing)!: default LLM for pipeline and boilerplate Transformer macro Aug 12, 2024
@timonv timonv merged commit 2e25ad4 into master Aug 12, 2024
14 checks passed
@timonv timonv deleted the feat/pipeline-defaults2 branch August 12, 2024 11:09
@github-actions github-actions bot mentioned this pull request Aug 12, 2024
timonv pushed a commit that referenced this pull request Aug 12, 2024
## 🤖 New release
* `swiftide`: 0.7.1 -> 0.8.0
* `swiftide-core`: 0.7.1 -> 0.8.0
* `swiftide-indexing`: 0.7.1 -> 0.8.0
* `swiftide-integrations`: 0.7.1 -> 0.8.0
* `swiftide-macros`: 0.7.1 -> 0.8.0
* `swiftide-query`: 0.7.1 -> 0.8.0

<details><summary><i><b>Changelog</b></i></summary><p>

## `swiftide`
<blockquote>

## [0.8.0](https://github.com/bosun-ai/swiftide/releases/tag/0.8.0) -
2024-08-12

### Added

-
[67336f1](67336f1)
*(indexing)* Sparse vector support with Splade and Qdrant
([#222](#222))

-
[2e25ad4](2e25ad4)
*(indexing)* Default LLM for indexing pipeline and boilerplate
Transformer macro
([#227](#227))

-
[e728a7c](e728a7c)
*(uncategorized)* Code outlines in chunk metadata
([#137](#137))

### Fixed

-
[3cce606](3cce606)
*(deps)* Update rust crate text-splitter to 0.15
([#224](#224))

### Other

-
[4970a68](4970a68)
*(readme)* Fix discord links

-
[b3f04de](b3f04de)
*(readme)* Add link to discord
([#219](#219))

-
[73d1649](73d1649)
*(readme)* Add Ollama support to README


**Full Changelog**:
0.7.1...0.8.0
</blockquote>


</p></details>

---
This PR was generated with
[release-plz](https://github.com/MarcoIeni/release-plz/).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant