From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id IDdIBizMxF/HGAAA0tVLHw (envelope-from ) for ; Mon, 30 Nov 2020 10:40:44 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id IAsUAizMxF9zWgAAB5/wlQ (envelope-from ) for ; Mon, 30 Nov 2020 10:40:44 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 66E5B940148 for ; Mon, 30 Nov 2020 10:40:43 +0000 (UTC) Received: from localhost ([::1]:38234 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kjgbp-00072U-RS for larch@yhetil.org; Mon, 30 Nov 2020 05:40:41 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:53852) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kjgYA-00031b-CQ for emacs-orgmode@gnu.org; Mon, 30 Nov 2020 05:36:54 -0500 Received: from static.rcdrun.com ([95.85.24.50]:46371) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kjgY8-0006sl-HH for emacs-orgmode@gnu.org; Mon, 30 Nov 2020 05:36:54 -0500 Received: from localhost ([::ffff:41.202.241.47]) (AUTH: PLAIN admin, TLS: TLS1.2,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by static.rcdrun.com with ESMTPSA id 00000000002C000E.000000005FC4CB42.000051A2; Mon, 30 Nov 2020 10:36:50 +0000 Date: Mon, 30 Nov 2020 13:35:18 +0300 From: Jean Louis To: Gerardo Moro , emacs-orgmode Subject: Re: Remembrance Agents Message-ID: References: <87eekcfeyk.fsf@ucl.ac.uk> <87mtyzyyvl.fsf@ucl.ac.uk> <87wny3xij3.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline In-Reply-To: <87wny3xij3.fsf@ucl.ac.uk> User-Agent: Mutt/2.0 (3d08634) (2020-11-07) Received-SPF: pass client-ip=95.85.24.50; envelope-from=bugs@gnu.support; helo=static.rcdrun.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -1.78 X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-TUID: 0kGv/l/c0JN+ * Eric S Fraga [2020-11-30 13:11]: > On Monday, 30 Nov 2020 at 11:37, Gerardo Moro wrote: > > Ok, thanks. How do you specify the location and is the formatting ok when > > showing you the relevance pieces of text from the local databases? > > The agent needs to be told which files to index (check the man page for > ra-index) and, in my case, I point it to all .org files and all text > files under ~/Mail. The formatting is okay as far as I am concerned but > this is a subjective aspect that will differ for everybody! SMART (String Matching Algorithm Research Tool) https://github.com/smart-tool/smart Does it use this algorithm? I am cloning that one to see how useful it could be in relevance searches. ,---- | However, I can also see that the PostgreSQL database has already | built-in features for relevance searches: | | https://www.postgresql.org/docs/current/textsearch-intro.html `---- This makes then many external software pieces redundant, it becomes again trivial to work with a database as underlying algorithm and functions have already been programmed. Making a new remembrance agent based on various structured information is making few higher level functions that integrate the underlying capability of PostgreSQL database and Emacs users' editing environment: 0. Create appropriate table in the database. 1. Make automatic or semi-automatic list of Org files or other files. 2. Make simple Emacs Lisp function to index all those files in the database. This is probably few lines function. 3. Make few Emacs Lisp functions that observes what users is doing and display to user relevant results with the possibility to construct hyperlinks from the result buffer straight to Org buffer, or possibility to open up those relevant files for more references. Jean