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(embeddings): Embeddable derive macro #59

Merged
merged 52 commits into from
Oct 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
b7d146f
feat: setup derive macro
marieaurore123 Oct 2, 2024
5904734
test: test out writing embeddable macro
marieaurore123 Oct 3, 2024
ee9b5c3
test: continue testing custom macro implementation
marieaurore123 Oct 4, 2024
c8c1e9c
feat: macro generate trait bounds
marieaurore123 Oct 6, 2024
dff0aeb
refactor: split up macro into multiple files
marieaurore123 Oct 7, 2024
0d10011
refactor: move macro derive crate inside rig-core
marieaurore123 Oct 7, 2024
982a17b
Merge branch 'main' into feat(embeddings)/derive-macro
marieaurore123 Oct 8, 2024
79754aa
feat: replace embedding logic with new embeddable trait and macro
marieaurore123 Oct 8, 2024
3438fab
refactor: refactor rag examples, delete document embedding struct
marieaurore123 Oct 8, 2024
597e6c3
feat: remove document embedding from in memory store
marieaurore123 Oct 9, 2024
6c7ab8d
revert: revert vector store to main
marieaurore123 Oct 9, 2024
d7d2c19
Merge branch 'refactor(vector-store)/in-memeory-vector-store' into fe…
marieaurore123 Oct 9, 2024
bb712e3
docs: update emebddings builder docstrings
marieaurore123 Oct 9, 2024
efa2b65
refactor: derive macro
marieaurore123 Oct 10, 2024
8325164
feat: add error type on embeddable trait
marieaurore123 Oct 11, 2024
de022c4
refactor: move embeddings to its own module and seperate embeddable
marieaurore123 Oct 11, 2024
220d9fc
refactor: split up macro into more files, fix all imports
marieaurore123 Oct 11, 2024
f5e60f5
Merge branch 'feat/embeddings-overhaul' into feat(embeddings)/derive-…
marieaurore123 Oct 15, 2024
5a8c361
feat: handle tools with embeddingsbuilder
marieaurore123 Oct 15, 2024
dc89e54
bug(macro): fix error when embed tags missing
marieaurore123 Oct 15, 2024
ae66d08
style: cargo fmt
marieaurore123 Oct 15, 2024
4305952
fix(tests): clippy
marieaurore123 Oct 15, 2024
24e3b98
docs&revert: revert embeddable trait error type, add docstrings
marieaurore123 Oct 15, 2024
a7dbf6c
style: cargo clippy
marieaurore123 Oct 15, 2024
886ebcb
clippy(lancedb): fix unused function error
marieaurore123 Oct 15, 2024
79dea45
fix(test): remove useless assert false statement
marieaurore123 Oct 15, 2024
6362344
cleanup: split up branch into 2 branches for readability
marieaurore123 Oct 16, 2024
b5e1bf3
cleanup: revert certain changes during branch split
marieaurore123 Oct 16, 2024
7caf134
docs: revert doc string
marieaurore123 Oct 16, 2024
fb979ec
refactor: use OneOrMany in Embbedable trait, make derive macro crate …
marieaurore123 Oct 16, 2024
690027c
tests: add some more tests
marieaurore123 Oct 16, 2024
cca6059
clippy: cargo clippy
marieaurore123 Oct 17, 2024
f785b8c
docs: add docstring to oneormany
marieaurore123 Oct 17, 2024
0e2ade9
fix(macro): update error handling
marieaurore123 Oct 17, 2024
a98769c
refactor: reexport EmbeddingsBuilder in rig and update imports
marieaurore123 Oct 17, 2024
067894c
feat: implement IntoIterator and Iterator for OneOrMany
marieaurore123 Oct 17, 2024
32bcc61
refactor: rename from methods
marieaurore123 Oct 17, 2024
564bef4
tests: fix failing tests
marieaurore123 Oct 17, 2024
04f1f3e
refactor&fix: make PR review changes
marieaurore123 Oct 17, 2024
c8f6646
fix: fix tests failing
marieaurore123 Oct 17, 2024
40f3c18
test: add test on OneOrMany
marieaurore123 Oct 17, 2024
68d88b6
style: cargo fmt
marieaurore123 Oct 17, 2024
6ddc3c7
devops: Add cargo check for all features + doc check
cvauclair Oct 17, 2024
f799f94
devops: Fix missing dep
cvauclair Oct 17, 2024
3558085
devops: Make cargo doc strict
cvauclair Oct 17, 2024
dc248ed
docs: Fix docstring links
cvauclair Oct 17, 2024
4bc7d07
docs&fix: fix doc strings, implement iter_mut for OneOrMany
marieaurore123 Oct 17, 2024
093c434
Merge pull request #63 from 0xPlaygrounds/devops/ci-fix
cvauclair Oct 17, 2024
4d2ffdb
fix: update borrow and owning of macro
marieaurore123 Oct 18, 2024
6f04225
clippy: add back print statements
marieaurore123 Oct 18, 2024
bdd98e5
Merge branch 'main' into feat(embeddings)/derive-macro
marieaurore123 Oct 18, 2024
485ad3b
refactor: use thiserror for OneOtMany::EmptyListError
marieaurore123 Oct 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 24 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ jobs:

- name: Run clippy action
uses: clechasseur/rs-clippy-check@v3
with:
args: --all-features

test:
name: stable / test
Expand All @@ -79,4 +81,25 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: nextest
args: run --all-features
args: run --all-features

doc:
name: stable / doc
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install Rust stable
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: rust-docs

# Required to compile rig-lancedb
- name: Install Protoc
uses: arduino/setup-protoc@v3

- name: Run cargo doc
run: cargo doc --no-deps --all-features
env:
RUSTDOCFLAGS: -D warnings
Loading
Loading