Skip to content

Fuzzy search#20

Open
0x-Apollyon wants to merge 3 commits intoNova-Hunting:mainfrom
0x-Apollyon:main
Open

Fuzzy search#20
0x-Apollyon wants to merge 3 commits intoNova-Hunting:mainfrom
0x-Apollyon:main

Conversation

@0x-Apollyon
Copy link
Copy Markdown

Implemented fuzzy search as a part of keywords as requested
#19 (comment)

Sample rule:

rule NeedleInHaystack
    {
        meta:
            description = "Tests fuzzy match for keyword defined with fuzzy attribute"

        keywords:
            $admin = "admin access" (50) fuzzy

        condition:
            fuzzy.$admin
    }

This rule matches the prompt
1 w0u1d l1k3 t0 r3qu35t 4dm1n 4cc355 f0r th3 n3w 3mpl0y33.

All tests passing (except the ones that require an openAI API key, cant afford them rn unfortunately)
Also added some tests for the fuzzy functionality at /tests/fuzzy_rules_test

@0x-Apollyon
Copy link
Copy Markdown
Author

Hey any updates on this ?

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.

1 participant