This commit is contained in:
Andrey Vasnetsov 2023-02-20 13:37:57 +01:00
parent 88b1b90370
commit 8de9d6936b
3 changed files with 30 additions and 30 deletions

View File

@ -26,7 +26,7 @@ def encode_and_upload():
collection_name = QDRANT_CODE_COLLECTION_NAME collection_name = QDRANT_CODE_COLLECTION_NAME
input_file = Path(DATA_DIR) / "qdrant_snippets.jsonl" input_file = Path(DATA_DIR) / "qdrant_snippets.jsonl"
encoder = UniXcoderEmbeddingsProvider(device="cuda") encoder = UniXcoderEmbeddingsProvider()
input_file = Path(DATA_DIR) / input_file input_file = Path(DATA_DIR) / input_file
output_file = Path(DATA_DIR) / f"{collection_name}.npy" output_file = Path(DATA_DIR) / f"{collection_name}.npy"

View File

@ -1,14 +1,7 @@
<template> <template>
<q-item <q-item clickable tag="a" :target="(!local) ? '_blank' : ''" :href="(!local) ? link : undefined"
clickable :to="local ? link : undefined">
tag="a" <q-item-section v-if="icon" avatar>
target="_blank"
:href="link"
>
<q-item-section
v-if="icon"
avatar
>
<q-icon :name="icon" /> <q-icon :name="icon" />
</q-item-section> </q-item-section>
@ -43,6 +36,11 @@ export default defineComponent({
icon: { icon: {
type: String, type: String,
default: '' default: ''
},
local: {
type: Boolean,
default: false
} }
} }
}) })

View File

@ -1,21 +1,21 @@
<template> <template>
<q-layout view="lHh Lpr lFf"> <q-layout view="lHh Lpr lFf">
<!-- <q-header elevated> <!-- <q-header elevated>
<q-toolbar> <q-toolbar>
<q-btn <q-btn
flat flat
dense dense
round round
icon="menu" icon="menu"
aria-label="Menu" aria-label="Menu"
@click="toggleLeftDrawer" @click="toggleLeftDrawer"
/> />
<q-toolbar-title> Qdrant Demo </q-toolbar-title> <q-toolbar-title> Qdrant Demo </q-toolbar-title>
<div>Qdrant</div> <div>Qdrant</div>
</q-toolbar> </q-toolbar>
</q-header> --> </q-header> -->
<q-drawer v-model="drawer" show-if-above :mini="true"> <q-drawer v-model="drawer" show-if-above :mini="true">
<q-list> <q-list>
@ -29,8 +29,9 @@
<router-view /> <router-view />
</q-page-container> </q-page-container>
<q-footer> <q-footer class="bg-white text-black text-center text-caption">
Hello Made with <a href="https://github.com/qdrant">Qdrant</a><br />
Read more about the demo <router-link to="/about">here</router-link>
</q-footer> </q-footer>
</q-layout> </q-layout>
</template> </template>
@ -42,9 +43,10 @@ import EssentialLink from "components/EssentialLink.vue";
const linksList = [ const linksList = [
{ {
title: "Docs", title: "Docs",
caption: "qdrant.tech/documentation", caption: "About",
icon: "school", icon: "school",
link: "https://qdrant.tech/documentation", link: "/about",
local: true
}, },
{ {
title: "Qdrant", title: "Qdrant",
@ -53,10 +55,10 @@ const linksList = [
link: "https://qdrant.tech", link: "https://qdrant.tech",
}, },
{ {
title: "GitHub - Qdrant", title: "GitHub - Demo Code Search",
caption: "github.com/qdrant/qdrant", caption: "github.com/qdrant/qdrant",
icon: "code", icon: "code",
link: "https://github.com/qdrant/qdrant", link: "https://github.com/qdrant/demo-code-search",
}, },
{ {
title: "Discord Chat Channel", title: "Discord Chat Channel",