Skip to content
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

Indexing with large corpus #123

Merged
merged 2 commits into from
Jul 22, 2024
Merged
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
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
patreon: wafl
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ![Logo](images/logo.png) WAFL 0.1.0 [![Tests](https://github.com/fractalego/wafl/actions/workflows/development-tests1.yml/badge.svg)](https://github.com/fractalego/wafl/actions/workflows/development-tests1.yml)[![Docs](https://readthedocs.org/projects/wafl/badge/?version=latest)](https://wafl.readthedocs.io/en/latest/)

Introduction
Introductionhttps://www.youtube.com/watch?v=QKHSlBi5qok
============

WAFL is a framework for personal agents. It integrates Large language models, speech recognition and text to speech.
Expand Down
2 changes: 2 additions & 0 deletions todo.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
* knowledge cache does not cache the rules or facts

* multiple knowledge bases, one for internal facts and one for each indexed paths
* perhaps a way to structure the prompt using <> tags. The memory items need to be distinct.
* use poetry
Expand Down
1 change: 1 addition & 0 deletions wafl/knowledge/indexing_implementation.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ async def load_knowledge(config, logger=None):
if knowledge.hash == hash(rules_txt) and os.path.getmtime(
cache_filename
) > os.path.getmtime(index_filename):
await knowledge.initialize_retrievers()
return knowledge

knowledge = SingleFileKnowledge(config, rules_txt, logger=logger)
Expand Down
2 changes: 1 addition & 1 deletion wafl/runners/run_web_and_audio_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import sys
import threading

from flask import render_template, redirect, url_for
from flask import render_template, redirect

from wafl.interface.list_interface import ListInterface
from wafl.interface.voice_interface import VoiceInterface
Expand Down
2 changes: 1 addition & 1 deletion wafl/variables.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
def get_variables():
return {
"version": "0.1.0",
"version": "0.1.1",
}


Expand Down
Loading