Skip to content

Commit

Permalink
Merge pull request #123 from fractalego/indexing-with-large-corpus
Browse files Browse the repository at this point in the history
Indexing with large corpus
  • Loading branch information
fractalego committed Jul 22, 2024
2 parents 1d8eb52 + 330eda4 commit 3dcccbf
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 3 deletions.
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

0 comments on commit 3dcccbf

Please sign in to comment.