metadata
license: apache-2.0
language:
- en
- de
tags:
- legal
pretty_name: Swiss Code of Obligations
size_categories:
- 1K<n<10K
task_categories:
- question-answering
configs:
- config_name: default
data_files:
- split: civil_code_de_paraphrase_multilingual
path: swiss-civil-code-de-paraphrase-multilingual-mpnet-base-v2.jsonl
- split: code_of_obligations_en_gte
path: swiss-code-of-obligations-en-gte-small.jsonl
- split: code_of_obligations_en_paraphrase_multilingual
path: >-
swiss-code-of-obligations-en-paraphrase-multilingual-mpnet-base-v2.jsonl
Swiss Code of Obligations (OR) and Swiss Civil Code
(Part Five: The Code of Obligations) of 30 March 1911 (Status as of 1 September 2023)
Files generated from the Swiss publication platform for federal law
Format
Each article has the following type definition:
With vector embeddings by Xenova/paraphrase-multilingual-mpnet-base-v2
- swiss-civil-code-de-paraphrase-multilingual-mpnet-base-v2.jsonl
- swiss-code-of-obligations-en-paraphrase-multilingual-mpnet-base-v2.jsonl
With vector embeddings by Xenova/gte-small
- swiss-code-of-obligations-en-gte-small.jsonl
{
headings: string[]
article: string
link: string
content: string
vector: number[]
}
You can also find the original HTML where the data was extracted from.
Qdrant Vector Database
With vector embeddings by Xenova/paraphrase-multilingual-mpnet-base-v2
- swiss-civil-code-de-paraphrase-multilingual-mpnet-base-v2.snapshot.zip
- swiss-code-of-obligations-en-paraphrase-multilingual-mpnet-base-v2.snapshot.zip
With vector embeddings by Xenova/gte-small
💾 Setup Qdrant Vector Database
Open the Qdrant dashboard console http://localhost:6333/dashboard#/console
Create a new collection running this:
Vector size for
gte-small
is384
. Forparaphrase-multilingual-mpnet-base-v2
is768
.PUT collections/COLLECTION_NAME { "vectors": { "size": 384, "distance": "Cosine" } }
Download the snapshot file
Unzip the file using the terminal (⚠️ not with Finder on Mac ⚠️) with
unzip <file_name>
Upload the file using the following command. Adapt the fields accordingly and run it from the same directory, as where your snapshot lies
curl -X POST 'http://localhost:6333/collections/swiss-or/snapshots/upload' \
-H 'Content-Type:multipart/form-data' \
-F 'snapshot=@swiss-code-of-obligations-articles-gte-small-2023-10-18-12-13-25.snapshot'