séparer les exercices
This commit is contained in:
27
vector.sql
Normal file
27
vector.sql
Normal file
@@ -0,0 +1,27 @@
|
||||
CREATE TABLE produits (
|
||||
id SERIAL PRIMARY KEY,
|
||||
nom TEXT,
|
||||
caracteristiques VECTOR(6)
|
||||
);
|
||||
|
||||
INSERT INTO produits (nom, caracteristiques) VALUES
|
||||
('Tomate', '[0.6, 0.3, 0.3, 1.0, 0.5, 1.0]'),
|
||||
('Concombre', '[0.2, 0.1, 0.9, 1.0, 0.0, 0.0]'),
|
||||
('Courgette', '[0.3, 0.1, 0.5, 1.0, 0.0, 0.0]'),
|
||||
('Carotte', '[0.5, 0.1, 0.8, 0.5, 0.0, 1.0]'),
|
||||
('Poivron', '[0.4, 0.2, 0.6, 1.0, 0.0, 1.0]'),
|
||||
('Aubergine', '[0.2, 0.1, 0.4, 1.0, 0.0, 0.0]'),
|
||||
('Pomme', '[0.8, 0.3, 0.9, 1.0, 1.0, 1.0]'),
|
||||
('Poire', '[0.7, 0.2, 0.7, 1.0, 1.0, 0.0]'),
|
||||
('Fraise', '[0.9, 0.4, 0.7, 1.0, 1.0, 1.0]'),
|
||||
('Cerise', '[0.8, 0.3, 0.6, 1.0, 1.0, 1.0]'),
|
||||
('Citron', '[0.2, 1.0, 0.6, 1.0, 1.0, 1.0]'),
|
||||
('Orange', '[0.7, 0.6, 0.7, 1.0, 1.0, 1.0]'),
|
||||
('Banane', '[0.9, 0.1, 0.2, 1.0, 1.0, 0.0]'),
|
||||
('Raisin', '[0.8, 0.3, 0.5, 1.0, 1.0, 1.0]'),
|
||||
('Pastèque', '[0.8, 0.2, 0.6, 1.0, 1.0, 1.0]'),
|
||||
('Melon', '[0.9, 0.2, 0.5, 1.0, 1.0, 1.0]'),
|
||||
('Betterave', '[0.5, 0.1, 0.4, 0.0, 0.0, 1.0]'),
|
||||
('Radis', '[0.2, 0.3, 0.9, 0.5, 0.0, 1.0]'),
|
||||
('Brocoli', '[0.1, 0.1, 0.6, 0.0, 0.0, 0.0]'),
|
||||
('Chou-fleur', '[0.1, 0.1, 0.7, 0.0, 0.0, 0.0]');
|
||||
Reference in New Issue
Block a user