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

fix: Fix SQLite import issue #4294

Merged
merged 1 commit into from
Jul 1, 2024
Merged

fix: Fix SQLite import issue #4294

merged 1 commit into from
Jul 1, 2024

Conversation

franciscojavierarceo
Copy link
Member

@franciscojavierarceo franciscojavierarceo commented Jun 19, 2024

What this PR does / why we need it:

Adds try/except block to importing sqlite_vec

Which issue(s) this PR fixes:

#4293

Fixes

#4293

@franciscojavierarceo franciscojavierarceo changed the title bug: Fix sqlite import issue fix: Fix sqlite import issue Jun 19, 2024
@franciscojavierarceo franciscojavierarceo changed the title fix: Fix sqlite import issue fix: Fix SQLite import issue Jun 19, 2024
@@ -410,6 +412,10 @@ def retrieve_online_documents(


def _initialize_conn(db_path: str):
try:
import sqlite_vec # noqa: F401
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this import used anywhere?

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah that code already exists

Copy link
Collaborator

@tokoko tokoko left a comment

Choose a reason for hiding this comment

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

lgtm

@HaoXuAI HaoXuAI merged commit 398ea3b into master Jul 1, 2024
17 checks passed
@HaoXuAI
Copy link
Collaborator

HaoXuAI commented Jul 1, 2024

nice

franciscojavierarceo added a commit that referenced this pull request Jul 4, 2024
adding try and except block for import

Co-authored-by: Francisco Javier Arceo <franciscojavierarceo@users.noreply.github.com>
franciscojavierarceo pushed a commit that referenced this pull request Jul 4, 2024
## [0.39.1](v0.39.0...v0.39.1) (2024-07-04)

### Bug Fixes

* Fix SQLite import issue ([#4294](#4294)) ([8d9b60e](8d9b60e))
@tokoko tokoko deleted the sqlite-vec-patch branch July 16, 2024 12:07
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.

None yet

3 participants