Skip to content

Commit

Permalink
Indexify UI (tensorlakeai#307)
Browse files Browse the repository at this point in the history
* wip

* wip

* wip error page

* add extractor page + ts sdk updates

* wip

* add tables to repo

* add theming / icons

* increase table content type width

* string to color display for namespaces

* dockerize ui + use loaders

* additional cleanup of unused files
  • Loading branch information
lucasjacks0n authored Feb 5, 2024
1 parent babc827 commit 3f0ff9d
Show file tree
Hide file tree
Showing 36 changed files with 20,525 additions and 19 deletions.
8 changes: 6 additions & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@ services:
server:
ipv4_address: 172.21.0.10
profiles: ["redis"] # only create a redis service if the "redis" profile is enabled


ui:
build:
context: ui
command: npx serve build --single
ports:
- 3000:3000
volumes:
data:
33 changes: 17 additions & 16 deletions local_server_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ blob_storage:
backend: disk
# Path to the directory where the blob storage will store the data.
disk:
path: /tmp/indexify-blob-storage
path: /tmp/indexify-blob-storage

#backend: s3
#s3:
Expand All @@ -36,28 +36,29 @@ blob_storage:
#
# The qdrant_config parameter specifies the configuration for the Qdrant
# service.
index_config:
index_store: Qdrant
qdrant_config:
addr: "http://127.0.0.1:6334"
# index_config:
# index_store: Qdrant
# qdrant_config:
# addr: "http://127.0.0.1:6334"

# # The pg_vector_config parameter specifies the configuration for the Postgres pg_embedding extension
# - index_store: PgEmbedding
# pg_vector_config:
# addr: postgres://postgres:postgres@localhost/indexify
# m: 16
# efconstruction: 64
# efsearch: 40
index_config:
# The pg_vector_config parameter specifies the configuration for the Postgres pg_embedding extension
index_store: PgVector
pg_vector_config:
addr: postgres://postgres:postgres@localhost/indexify
m: 16
efconstruction: 64
efsearch: 40

# TLS configuration for the service. If this is not specified, the service will
# run in HTTP mode.
# For local development, run `make dev-test-tls-insecure` to generate the
# required certificates and keys.
tls:
api: false
ca_file: .dev-tls/ca.crt # Path to the CA certificate
cert_file: .dev-tls/server.crt # Path to the server certificate
key_file: .dev-tls/server.key # Path to the server private key
ca_file: .dev-tls/ca.crt # Path to the CA certificate
cert_file: .dev-tls/server.crt # Path to the server certificate
key_file: .dev-tls/server.key # Path to the server private key

node_id: 0
peers:
Expand All @@ -79,4 +80,4 @@ cache:

sled:
# provide a path to the sled storage
path: /tmp/indexify-sled
path: /tmp/indexify-sled
2 changes: 1 addition & 1 deletion sdk-py/indexify/extractor_binding.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class ExtractorBinding:
extractor: str
name: str
content_source: str
filters: dict
filters_eq: dict
input_params: dict

def __repr__(self) -> str:
Expand Down
6 changes: 6 additions & 0 deletions ui/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
node_modules
.DS_Store
.git
.gitignore
.dockerignore
.vscode
23 changes: 23 additions & 0 deletions ui/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
10 changes: 10 additions & 0 deletions ui/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM --platform=amd64 node

WORKDIR /app

COPY package.json package-lock.json ./

RUN npm install

COPY . .

Loading

0 comments on commit 3f0ff9d

Please sign in to comment.