Finalized
This commit is contained in:
parent
ef61b926a1
commit
8e131c2847
7 changed files with 10 additions and 5 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,10 +1,12 @@
|
||||||
# env
|
# env
|
||||||
.env
|
.env
|
||||||
*venv/
|
*venv/
|
||||||
|
**/__pycache__/
|
||||||
|
|
||||||
# Binaries for installation
|
# Binaries for installation
|
||||||
*.deb
|
*.deb
|
||||||
*.whl
|
*.whl
|
||||||
|
.install/
|
||||||
|
|
||||||
# Test data
|
# Test data
|
||||||
data/pgvector.sql
|
data/pgvector.sql
|
||||||
|
|
BIN
pipeline.indexing.png
Normal file
BIN
pipeline.indexing.png
Normal file
Binary file not shown.
After ![]() (image error) Size: 34 KiB |
Before ![]() (image error) Size: 126 KiB After ![]() (image error) Size: 126 KiB ![]() ![]() |
Binary file not shown.
|
@ -1,7 +1,9 @@
|
||||||
import pathlib
|
import pathlib
|
||||||
|
|
||||||
from gevent.pywsgi import WSGIServer
|
from gevent.pywsgi import WSGIServer
|
||||||
from flask import Flask, request, render_template
|
|
||||||
from tabulate import tabulate
|
from tabulate import tabulate
|
||||||
|
|
||||||
|
from flask import Flask, request, render_template
|
||||||
from wtforms import Form, StringField, SubmitField
|
from wtforms import Form, StringField, SubmitField
|
||||||
from wtforms.validators import DataRequired
|
from wtforms.validators import DataRequired
|
||||||
|
|
||||||
|
@ -47,5 +49,6 @@ def query_backend():
|
||||||
|
|
||||||
return backend.format_for_api(result)
|
return backend.format_for_api(result)
|
||||||
|
|
||||||
http_server = WSGIServer(("0.0.0.0", 8000), app)
|
if __name__ == "__main__":
|
||||||
http_server.serve_forever()
|
http_server = WSGIServer(("0.0.0.0", 8000), app)
|
||||||
|
http_server.serve_forever()
|
||||||
|
|
|
@ -27,7 +27,7 @@ class AIBackend:
|
||||||
document_store: PgvectorDocumentStore
|
document_store: PgvectorDocumentStore
|
||||||
documents: list[Document] = []
|
documents: list[Document] = []
|
||||||
|
|
||||||
def __init__(self, load_dataset = False):
|
def __init__(self, load_dataset=False):
|
||||||
get_torch_info()
|
get_torch_info()
|
||||||
try:
|
try:
|
||||||
self.gpu = ComponentDevice.from_str("cuda:0")
|
self.gpu = ComponentDevice.from_str("cuda:0")
|
||||||
|
|
|
@ -73,7 +73,7 @@
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 220px;
|
width: 220px;
|
||||||
height: 250px;
|
height: 275px;
|
||||||
border: 2px solid #b86cff;
|
border: 2px solid #b86cff;
|
||||||
margin: 1rem;
|
margin: 1rem;
|
||||||
justify-items: flex-start;
|
justify-items: flex-start;
|
||||||
|
|
Loading…
Add table
Reference in a new issue