+
Skip to content

Conversation

baitsguy
Copy link
Contributor

@baitsguy baitsguy commented Oct 25, 2024

Allows the planner to work with a custom set of operators and rewrite rules. Added a default strategy (current behavior) and a vector search only strategy.

We might consider refactoring the plan processors eventually but this is functional for the current use cases.

You can enable this in evaluation by modifying

self.client = SycamoreQueryClient(
as

self.client = SycamoreQueryClient(
            llm_cache_dir=self.config.config.llm_cache_path,
            cache_dir=self.config.config.query_cache_path,
            llm=self.config.config.llm,
            query_plan_strategy=VectorSearchOnlyStrategy()
        )

@baitsguy baitsguy requested a review from mdwelsh October 25, 2024 19:09
@baitsguy baitsguy marked this pull request as ready for review October 25, 2024 19:11
Copy link
Contributor

@mdwelsh mdwelsh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

YOU ARE A MACHINE

self.llm = llm

def __call__(self, plan: LogicalPlan) -> LogicalPlan:
logging.info("Executing DefaultLogicalPlanProcessor")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Logging statement not quite right

@baitsguy baitsguy enabled auto-merge (squash) October 25, 2024 23:36
@baitsguy baitsguy merged commit d130b54 into main Oct 25, 2024
10 of 13 checks passed
@baitsguy baitsguy deleted the low-data-query-mode branch October 25, 2024 23:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载