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
input_file = Path(DATA_DIR) / "qdrant_snippets.jsonl"
encoder = UniXcoderEmbeddingsProvider(device="cuda")
encoder = UniXcoderEmbeddingsProvider()
input_file = Path(DATA_DIR) / input_file
output_file = Path(DATA_DIR) / f"{collection_name}.npy"

View File

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

View File

@ -29,8 +29,9 @@
<router-view />
</q-page-container>
<q-footer>
Hello
<q-footer class="bg-white text-black text-center text-caption">
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-layout>
</template>
@ -42,9 +43,10 @@ import EssentialLink from "components/EssentialLink.vue";
const linksList = [
{
title: "Docs",
caption: "qdrant.tech/documentation",
caption: "About",
icon: "school",
link: "https://qdrant.tech/documentation",
link: "/about",
local: true
},
{
title: "Qdrant",
@ -53,10 +55,10 @@ const linksList = [
link: "https://qdrant.tech",
},
{
title: "GitHub - Qdrant",
title: "GitHub - Demo Code Search",
caption: "github.com/qdrant/qdrant",
icon: "code",
link: "https://github.com/qdrant/qdrant",
link: "https://github.com/qdrant/demo-code-search",
},
{
title: "Discord Chat Channel",