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: qdrant implementation #1

Merged
merged 1 commit into from
May 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -158,3 +158,7 @@ cython_debug/
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/


# qdrant
qdrant_storage
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

10 changes: 8 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
{
"python.formatting.provider": "none",
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter"
}
},
"python.envFile": "${workspaceFolder}/.venv",
"python.formatting.provider": "black",
"python.testing.pytestArgs": [
"test_hard.py",
],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true,
}
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@

#* Testing

test: ## [Local development] Run all Python tests with pytest.
docker-compose up -d
while ! curl -s localhost:6333 > /dev/null; do sleep 1; done
poetry run pytest test_hard.py; docker-compose down
@echo "Done testing"

#* Installation
.PHONY: install
install:
Expand Down
7 changes: 0 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,3 @@
Embedbase + Qdrant - Advanced and high-performant vector similarity search technology in your AI applications

WIP.


pip install git+https://github.com/different-ai/embedbase.git@main#subdirectory=tests

git submodule add https://github.com/different-ai/embedbase embedbase

git submodule update --remote embedbase
4 changes: 0 additions & 4 deletions conftest.py

This file was deleted.

13 changes: 13 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: '3'

services:
qdrant:
container_name: qdrant
image: qdrant/qdrant
restart: always
expose:
- "6333"
ports:
- "6333:6333"
volumes:
- ./qdrant_storage:/qdrant/storage
1 change: 0 additions & 1 deletion monorepo
Submodule monorepo deleted from 9f8b75
202 changes: 114 additions & 88 deletions poetry.lock

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ classifiers = [

[tool.poetry.dependencies]
python = ">=3.8,<3.12"
embedbase = "^1.0.9"
embedbase = "^1.1.3"
qdrant-client = "^1.1.6"


Expand All @@ -53,6 +53,7 @@ pytest-html = "^3.1.1"
pytest-cov = "^4.0.0"
httpx = "^0.24.0"
pytest-asyncio = "^0.21.0"
requests_mock = "^1.9.3"

[tool.black]
target-version = ["py38"]
Expand Down
Loading
Loading