atisharma / llama_farm Goto Github PK
View Code? Open in Web Editor NEWUse local llama LLM or openai to chat, discuss/summarize your documents, youtube videos, and so on.
License: GNU Affero General Public License v3.0
Use local llama LLM or openai to chat, discuss/summarize your documents, youtube videos, and so on.
License: GNU Affero General Public License v3.0
tools.hy
sort-of-works but is unreliable and could offer something like a plugin system. If it could be made more reliable and performant then it should be made available in the regular chat.
llama_farm/llama_farm/guides.hy
Line 60 in 9e8ff04
Use faster-whisper to record audio as input.
Use a push-to-talk button
trafilatura looks better for extraction and text processing. This may help remove the reliance on langchain.
Langchain is a quite large and sprawling dependency. It's currently used for:
It's simple enough to replace the db wrappers and the loaders could use Unstructured directly, but I'm unsure about the document splitters.
llama_farm/llama_farm/state.hy
Line 11 in 9e8ff04
FAISS works well. The Chroma db support should be tested or should be removed. If kept, an options should be presented in the config.
Sumy does extractive text summarisation and is very good. It may be better than Llama for this application.
Some ideas are already in tasks.hy
, but it's a quite a hard problem. Other projects are attempting it. Perhaps it should be out of scope?
I have set the openai_api_key and I get:
AuthenticationError: Incorrect API key provided: n/a. You can find your API key at https://platform.openai.com/account/api-keys.
I hardcode the key in place of N/A in the defaults and I get:
InvalidRequestError: Unrecognized request arguments supplied: openai_api_base, openai_api_key
are there problems with the implementation of the API?
llama_farm/llama_farm/utils.hy
Line 54 in 9e8ff04
Hi,
first of all thank for your great project! Whenever I invoke "/ingest" and regardless of the given input (urls, filnames, dir) it throws an AttributeError, e.g. /ingest "text.txt" will throw
AttributeError: 'list' object has no attribute 'decode'
The trace is barely readable so could you please check if you are having the same issue?
Am I doing something wrong here?
Hi there. When I run llama_farm I get this error :
hy.reader.exceptions.LexException: reader macro '#^list' is not defined
Ideas? Thanks
llama_farm/llama_farm/guides.hy
Line 6 in 9e8ff04
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.