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

Index handling methods #5

Merged
merged 2 commits into from
Apr 5, 2024
Merged

Index handling methods #5

merged 2 commits into from
Apr 5, 2024

Conversation

willtai
Copy link
Contributor

@willtai willtai commented Apr 3, 2024

Description

Refactored create vector index and drop index into their own methods. Created method for creating fulltext index.

Note that the GenAIClient will be removed after this work.

Implementation

  • Three index methods: create_vector_index(), drop_index(), and create_fulltext_index()
  • Added a IndexModel type that validates the Neo4j python driver. The Driver class is not a type that Pydantic can read.
  • Added FulltextIndexModel type
  • Modified and added tests

See the llama-index create_new_keyword_index() implementation for reference.

@willtai willtai marked this pull request as ready for review April 3, 2024 14:37
@willtai willtai requested a review from a team April 3, 2024 14:37
@willtai willtai force-pushed the index-handling-methods branch from 6fb1a4b to 20fb738 Compare April 4, 2024 09:17
@willtai willtai force-pushed the index-handling-methods branch from 20fb738 to 77817b1 Compare April 4, 2024 15:01
Copy link
Member

@oskarhane oskarhane left a comment

Choose a reason for hiding this comment

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

LGTM 🌻

@willtai willtai merged commit 1602022 into main Apr 5, 2024
3 checks passed
@willtai willtai deleted the index-handling-methods branch April 5, 2024 09:24
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.

2 participants