Skip to content

Instantly share code, notes, and snippets.

View juarezjuniorgithub's full-sized avatar

Juarez Barbosa Junior juarezjuniorgithub

View GitHub Profile
@juarezjuniorgithub
juarezjuniorgithub / HibernateVectorDataTypeOracleDatabase.java
Created March 10, 2025 14:09
HibernateVectorDataTypeOracleDatabase.java
/*
Copyright (c) 2024, Oracle and/or its affiliates.
This software is dual-licensed to you under the Universal Permissive License
(UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License
2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose
either license.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@juarezjuniorgithub
juarezjuniorgithub / HibernateVectorDataTypeEntity.java
Created March 10, 2025 14:08
HibernateVectorDataTypeEntity.java
/*
Copyright (c) 2024, Oracle and/or its affiliates.
This software is dual-licensed to you under the Universal Permissive License
(UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License
2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose
either license.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@juarezjuniorgithub
juarezjuniorgithub / hibernate-vector-oracle-ai-vector-search-functions.md
Last active March 10, 2025 13:01
Functions - Hibernate Vector module and Oracle AI Vector Search
Function Specification
cosine_distance() Computes the cosine distance between two vectors. It maps to vector_distance(v1, v2, COSINE) function of Oracle AI Vector Search.
l1_distance() Alias for the taxicab_distance() function below.
taxicab_distance() Computes the taxicab distance between two vectors. It maps aps to vector_distance(v1, v2, MANHATTAN) function for Oracle AI Vector Search.
l2_distance() Alias for the euclidean_distance() function below.
euclidean_distance() Computes the euclidean distance between two vectors. It maps to vector_distance(v1, v2, EUCLIDEAN) function of Oracle AI Vector Search.
inner_product() Computes the inner product between two vectors. It maps to the
@juarezjuniorgithub
juarezjuniorgithub / HibernateVectorDataTypeOracleDatabase.java
Last active March 13, 2025 17:09
HibernateVectorDataTypeOracleDatabase.java
/*
Copyright (c) 2024, Oracle and/or its affiliates.
This software is dual-licensed to you under the Universal Permissive License
(UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License
2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose
either license.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@juarezjuniorgithub
juarezjuniorgithub / HibernateVectorDataTypeEntity.java
Last active March 13, 2025 17:09
HibernateVectorDataTypeEntity.java
/*
Copyright (c) 2024, Oracle and/or its affiliates.
This software is dual-licensed to you under the Universal Permissive License
(UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License
2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose
either license.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@juarezjuniorgithub
juarezjuniorgithub / SQLStatementWithAsynchronousJDBC.java
Created March 6, 2025 13:50
SQLStatementWithAsynchronousJDBC.java
/*
Copyright (c) 2024, Oracle and/or its affiliates.
This software is dual-licensed to you under the Universal Permissive License
(UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License
2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose
either license.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@juarezjuniorgithub
juarezjuniorgithub / R2dbcVectorDemo.java
Last active March 5, 2025 15:03
R2dbcVectorDemo.java
/*
Copyright (c) 2024, Oracle and/or its affiliates.
This software is dual-licensed to you under the Universal Permissive License
(UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License
2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose
either license.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@juarezjuniorgithub
juarezjuniorgithub / DatabaseConfig.java
Last active March 5, 2025 15:03
DatabaseConfig.java
/*
Copyright (c) 2024, Oracle and/or its affiliates.
This software is dual-licensed to you under the Universal Permissive License
(UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License
2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose
either license.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@juarezjuniorgithub
juarezjuniorgithub / default_embedding_table_columns.md
Last active February 25, 2025 13:54
Default embedding table columns - OracleEmbeddingStore
Name Type Description
id VARCHAR(36) Primary key. Used to store UUID strings which are generated when the embedding store
embedding VECTOR(*, FLOAT32) Stores the embedding
text CLOB Stores the text segment
metadata JSON Stores the metadata
@juarezjuniorgithub
juarezjuniorgithub / PipelineVectorDemo.java
Created November 12, 2024 11:05
PipelineVectorDemo.java
/*
Copyright (c) 2024, Oracle and/or its affiliates.
This software is dual-licensed to you under the Universal Permissive License
(UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License
2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose
either license.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.