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

Pg vector db #59

Merged
merged 5 commits into from
Aug 22, 2024
Merged

Pg vector db #59

merged 5 commits into from
Aug 22, 2024

Conversation

granawkins
Copy link
Member

No description provided.

@granawkins granawkins marked this pull request as draft August 19, 2024 10:37
@granawkins granawkins marked this pull request as ready for review August 20, 2024 00:15
Comment on lines -120 to +122
async def _wait_1s_then_open_browser():
await asyncio.sleep(1)
webbrowser.open(f"http://localhost:{port}")
# async def _wait_1s_then_open_browser():
# await asyncio.sleep(1)
# webbrowser.open(f"http://localhost:{port}")

asyncio.create_task(_wait_1s_then_open_browser())
# asyncio.create_task(_wait_1s_then_open_browser())
Copy link
Member

Choose a reason for hiding this comment

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

meant to leave these?

Copy link
Member Author

Choose a reason for hiding this comment

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

oh whoops - ya it wasn't working right on my pc.

if __name__ == "__main__":
Engine().migrate()
@retry_on_exception()
def query(self, query: str, active_checksums: set[str]) -> list[dict[str, Any]]:
Copy link
Member

Choose a reason for hiding this comment

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

the active_checksums will be all documents from a given repo?

Copy link
Member Author

Choose a reason for hiding this comment

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

All active documents from a repo - so you might have 3 or 4 versions from different branches, and it'll only be the one currently active.

@granawkins granawkins merged commit c495ca3 into main Aug 22, 2024
3 checks passed
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