CREATE TABLE IF NOT EXISTS ${DatasetVectorTableName} (
id BIGSERIAL PRIMARY KEY,
vector VECTOR(1536) NOT NULL,
vector ${isHalfVec?'HALFVEC(1536)':'VECTOR(1536)'} NOT NULL,
team_id VARCHAR(50) NOT NULL,
dataset_id VARCHAR(50) NOT NULL,
collection_id VARCHAR(50) NOT NULL,
...
...
@@ -24,7 +26,7 @@ export class PgVectorCtrl implements VectorControllerType {
`);
awaitPgClient.query(
`CREATE INDEX CONCURRENTLY IF NOT EXISTS vector_index ON ${DatasetVectorTableName} USING hnsw (vector vector_ip_ops) WITH (m = 32, ef_construction = 128);`
`CREATE INDEX CONCURRENTLY IF NOT EXISTS vector_index ON ${DatasetVectorTableName} USING hnsw (vector ${isHalfVec?'halfvec_ip_ops':'vector_ip_ops'}) WITH (m = 32, ef_construction = 128);`
);
awaitPgClient.query(
`CREATE INDEX CONCURRENTLY IF NOT EXISTS team_dataset_collection_index ON ${DatasetVectorTableName} USING btree(team_id, dataset_id, collection_id);`
"custom_domain.registration_hint":"Please prepare your own domain and complete the ICP filing through <bold>{{provider}}</bold>, then fill in the domain in the input box below",
"custom_domain.DNS_resolve_hint":"Please go to your domain service provider and add a CNAME resolution for this domain to <bold>{{domain}}</bold>. After the resolution takes effect, you can bind the custom domain.",
"custom_domain.delete_confirm":"Confirm to delete this custom domain?",
"custom_domain.dns_resolved":"Verified",
"custom_domain.dns_resolving":"Verifying",
"custom_domain.delete_confirm":"Confirm to delete this custom domain?",
"custom_domain.registration_hint":"Please prepare your own domain and complete the ICP filing through <bold>{{provider}}</bold>, then fill in the domain in the input box below",
"custom_domain.status.active":"Active",
"custom_domain.status.inactive":"Inactive",
"custom_model":"custom model",
"day":"day",
"default_model":"Default model",
"default_model_config":"Default model configuration",
"extra_dataset_size":"Additional knowledge base capacity",
"generation_time":"Generation time",
"has_invoice":"Whether the invoice has been issued",
"language":"Language and time zone",
"logout":"Sign out",
"max_app_amount":"Max app amount",
"max_dataset_amount":"Max dataset amount",
"max_dataset_size":"Max dataset size",
"max_team_member":"Max team members",
"model.active":"Active",
"model.alias":"Alias",
"model.alias_tip":"The name of the model displayed in the system is convenient for users to understand.",
...
...
@@ -77,7 +92,7 @@
"model.request_auth":"Custom key",
"model.request_auth_tip":"When making a request to a custom request address, carry the request header: Authorization: Bearer xxx to make the request.",
"model.request_url":"Custom url",
"model.request_url_tip":"If you fill in this value, you will initiate a request directly without passing. \nYou need to follow the API format of Openai and fill in the full request address, such as\n\nLLM: {Host}}/v1/Chat/Completions\n\nEmbedding: {host}}/v1/embeddings\n\nSTT: {Host}/v1/Audio/Transcriptions\n\nTTS: {Host}}/v1/Audio/Speech\n\nRERARARARARARARANK: {Host}}/v1/RERARARARARARARARARARANK",
"model.request_url_tip":"If this value is filled in, a request will be made directly to this address without going through the configuration of the model channel.\n\nThe interface needs to follow OpenAI’s API format and fill in the complete request address, for example:\n\nLLM: {{host}}/v1/chat/completions\nEmbedding: {{host}}/v1/embeddings\nSTT: {{host}}/v1/audio/transcriptions\nTTS: {{host}}/v1/audio/speech\nRerank: {{host}}/v1/rerank",
"model.voices_tip":"Configure multiple through an array, for example:\n\n[\n {\n\"label\": \"Alloy\",\n\"value\": \"alloy\"\n },\n {\n\"label\": \"Echo\",\n\"value\": \"echo\"\n }\n]",
"model_provider":"Model Provider",
"month":"month",
"no":"no",
"notifications":"Notify",
"order_number":"Order number",
"order_type":"Order type",
"payment_method":"Payment method",
"personal_information":"Personal",
"personalization":"Personalization",
"promotion_records":"Promotions",
"requests_per_minute":"Requests per minute",
"reset_default":"Restore the default configuration",
"team":"Team",
"third_party":"Third Party",
"usage_records":"Usage",
"bill_detail":"Bill details",
"order_number":"Order number",
"generation_time":"Generation time",
"order_type":"Order type",
"status":"state",
"payment_method":"Payment method",
"support_wallet_amount":"Amount",
"yuan":"¥{{amount}}",
"has_invoice":"Whether the invoice has been issued",
"yes":"yes",
"no":"no",
"subscription_period":"Subscription cycle",
"subscription_package":"Subscription package",
"subscription_mode_month":"Duration",
"month":"month",
"coupon_included_packages":"Coupon packages",
"day":"day",
"extra_dataset_size":"Additional knowledge base capacity",