Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from langchain.prompts import PromptTemplate
from langchain_core.prompts import PromptTemplate


prompt_template = """
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from langchain.prompts import PromptTemplate
from langchain_core.prompts import PromptTemplate

prompt_template = """You are an expert in the {dialect} SQL dialect, skilled in providing precise SQL code completions.
Your task is to complete the SQL query based on the given context.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from langchain.prompts import PromptTemplate
from langchain_core.prompts import PromptTemplate

prompt_template = """
You are a {dialect} expert.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from langchain.prompts import PromptTemplate
from langchain_core.prompts import PromptTemplate


prompt_template = """You are a {dialect} expert that can help fix SQL query errors.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from langchain.prompts import PromptTemplate
from langchain_core.prompts import PromptTemplate


prompt_template = """
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from langchain.prompts import PromptTemplate
from langchain_core.prompts import PromptTemplate


prompt_template = """
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from langchain.prompts import PromptTemplate
from langchain_core.prompts import PromptTemplate


prompt_template = """
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from langchain.prompts import PromptTemplate
from langchain_core.prompts import PromptTemplate


prompt_template = """
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from langchain.prompts import PromptTemplate
from langchain_core.prompts import PromptTemplate


prompt_template = """
Expand Down
2 changes: 1 addition & 1 deletion querybook/server/lib/vector_store/all_embeddings.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import Type

from langchain.embeddings.base import Embeddings
from langchain_core.embeddings import Embeddings
from lib.utils.import_helper import import_module_with_default

ALL_EMBEDDINGS = import_module_with_default(
Expand Down
4 changes: 2 additions & 2 deletions querybook/server/lib/vector_store/base_vector_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
DEFAULT_SIMILARITY_SCORE_THRESHOLD,
DEFAULT_SIMILARITY_SCORE_THRESHOLD_GREAT_MATCH,
)
from langchain.docstore.document import Document
from langchain.vectorstores.base import VectorStore
from langchain_core.documents import Document
from langchain_core.vectorstores import VectorStore
from models.metastore import DataTable
from models.query_execution import QueryExecution

Expand Down
2 changes: 1 addition & 1 deletion querybook/server/lib/vector_store/stores/opensearch.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from langchain.docstore.document import Document
from langchain_core.documents import Document
from langchain_community.vectorstores import OpenSearchVectorSearch
from lib.logger import get_logger
from lib.vector_store.base_vector_store import VectorStoreBase
Expand Down
2 changes: 1 addition & 1 deletion querybook/server/logic/vector_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
DEFAULT_TABLE_SEARCH_LIMIT,
MAX_SAMPLE_QUERY_COUNT_FOR_TABLE_SUMMARY,
)
from langchain.docstore.document import Document
from langchain_core.documents import Document
from lib.ai_assistant import ai_assistant
from lib.elasticsearch.search_table import construct_tables_query_by_table_names
from lib.elasticsearch.search_utils import ES_CONFIG, get_matching_objects
Expand Down
4 changes: 2 additions & 2 deletions requirements/ai/langchain.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
langchain==0.3.24
langchain-openai==0.3.14
langchain==1.3.9
langchain-openai==1.1.14
opensearch-py==2.8.0