-
Notifications
You must be signed in to change notification settings - Fork 277
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/new embedding global variable #18809
base: main
Are you sure you want to change the base?
Feature/new embedding global variable #18809
Conversation
Ospp/llm chunk
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. PR Code Suggestions ✨Explore these optional code suggestions:
|
新增文件缺少license信息。 (function目录下) |
User description
What type of PR is this?
Which issue(s) this PR fixes:
issue #
What this PR does / why we need it:
PR Type
Enhancement, Tests
Description
Changes walkthrough 📝
14 files
func_llm.go
Implement LLM chunking and embedding functions
pkg/sql/plan/function/func_llm.go
build_ddl.go
Add LLM secondary index support in DDL
pkg/sql/plan/build_ddl.go
ddl.go
Integrate LLM index handling in DDL operations
pkg/sql/compile/ddl.go
ddl_index_algo.go
Implement LLM index table handling
pkg/sql/compile/ddl_index_algo.go
ollama_service.go
Add Ollama service interaction for embeddings
pkg/sql/plan/function/ollama_service.go
secondary_index_utils.go
Add LLM index type and utilities
pkg/catalog/secondary_index_utils.go
list_builtIn.go
Register LLM functions in built-in list
pkg/sql/plan/function/list_builtIn.go
datalink.go
Implement Datalink URL parsing and validation
pkg/container/types/datalink.go
embedding_serviece.go
Introduce embedding service interface
pkg/sql/plan/function/embedding_serviece.go
function_id.go
Add function IDs for LLM operations
pkg/sql/plan/function/function_id.go
types.go
Define constants for LLM secondary index
pkg/catalog/types.go
create.go
Add LLM index type to parser
pkg/sql/parsers/tree/create.go
keywords.go
Add LLM keyword to MySQL parser
pkg/sql/parsers/dialect/mysql/keywords.go
LLM
keyword to MySQL dialect parser.mysql_sql.y
Integrate LLM index in SQL grammar
pkg/sql/parsers/dialect/mysql/mysql_sql.y
6 files
func_llm_test.go
Add unit tests for ChunkString function
pkg/sql/plan/function/func_llm_test.go
ChunkString
function.func_llm_chunk.sql
Add test cases for LLM chunk function
test/distributed/cases/function/func_llm_chunk.sql
1.txt
Add test resource file for LLM chunking
test/distributed/resources/llm_test/chunk/1.txt
2.txt
Add test resource file for LLM chunking
test/distributed/resources/llm_test/chunk/2.txt
3.txt
Add test resource file for LLM chunking
test/distributed/resources/llm_test/chunk/3.txt
4.txt
Add test resource file for LLM chunking
test/distributed/resources/llm_test/chunk/4.txt
1 files
variables.go
Add system variables for LLM embedding
pkg/frontend/variables.go
1 files
mysql_sql.go
...
pkg/sql/parsers/dialect/mysql/mysql_sql.go
...