MCPcopy Create free account
hub / github.com/LUMIA-Group/MemoryDecoder / get_index_path

Function get_index_path

knn_utils/build_index.py:57–63  ·  view source on GitHub ↗

Generate the path for the FAISS index file.

(dstore_info)

Source from the content-addressed store, hash-verified

55 }
56
57def get_index_path(dstore_info):
58 """Generate the path for the FAISS index file."""
59 index_path = os.path.join(
60 dstore_info["dstore_dir"],
61 f"{dstore_info['eval_subset']}_{dstore_info['dimension']}.index"
62 )
63 return index_path
64
65def select_continuous_chunks(dataset, total_sample_size, num_chunks=10, seed=42):
66 """

Callers 1

build_indexFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected