File size: 957 Bytes
7bd11ed
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/**
 * @typedef {import('app/config/types').AppConfig} AppConfig
 */

/**
 * @type {AppConfig}
 */
const config = {
    cache_folder: ".cache",
    embeddings: {
        embeddings_path: ".embeddings",
        embedding_model: {
            model_name: "maidalun1020/bce-embedding-base_v1",
        },
        splade_config: {
            n_batch: 8,
        },
        chunk_sizes: [1024],
        document_settings: [
            {
                doc_path: "documents/falcon-refinedweb",
                additional_parser_settings: {
                    md: {
                        skip_first: true,
                        merge_sections: false,
                        remove_images: true,
                    },
                },
                passage_prefix: "passage: ",
            },
        ],
    },
    semantic_search: {
        max_k: 15,
        max_char_size: 4096,
        query_prefix: "query: ",
    },
};

module.exports = config;