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

cxx/AssistantCns.hxx has unfinished formulas (to produce+process databases of resources.) Do this as cxx/ClassCns.hxx or (new) cxx/ClassDatabases.hxx #9

Open
SwuduSusuwu opened this issue Jun 16, 2024 · 1 comment
Labels
good first issue Good for newcomers improve New feature or request todo unimplemented (but advertised) part of the tool

Comments

@SwuduSusuwu
Copy link
Owner

SwuduSusuwu commented Jun 16, 2024

Lots of this has general purpose uses, such as to do https://github.com/SwuduSusuwu/SubStack/blob/trunk/posts/CnsCompress.md

cxx/AssistantCns.hxx#L22

static std::vector<FilePath> assistantDefaultHosts = {
/* Universal Resources Locators of hosts which `questionsResponsesFromHosts()` uses
 * Wikipedia is a special case; has compressed downloads of databases ( https://wikipedia.org/wiki/Wikipedia:Database_download )
 * Github is a special case; has compressed downloads of repositories ( https://docs.github.com/en/get-started/start-your-journey/downloading-files-from-github )
 */
	"https://stackoverflow.com",
	"https://superuser.com",
	"https://quora.com"
};

/* @throw std::bad_alloc
 * @post If no question, `0 == questionsOrNull.bytecodes[x].size()` (new message synthesis).
 * If no responses, `0 == responsesOrNull.bytecodes[x].size()` (ignore).
 * `questionsOrNull.signatures[x] = Universal Resource Locator`
 * @code Sha2(ResultList.bytecodes[x]) == ResultList.hashes[x] @endcode */
void questionsResponsesFromHosts(ResultList &questionsOrNull, ResultList &responsesOrNull, const std::vector<FilePath> &hosts = assistantDefaultHosts);
void questionsResponsesFromXhtml(ResultList &questionsOrNull, ResultList &responsesOrNull, const FilePath &filepath = "index.xhtml");
const std::vector<FilePath> assistantParseUrls(const FilePath &filepath = "index.xhtml"); /* TODO: for XML/XHTML could just use [ https://www.boost.io/libraries/regex/ https://github.com/boostorg/regex ] or [ https://www.boost.org/doc/libs/1_85_0/doc/html/property_tree/parsers.html#property_tree.parsers.xml_parser https://github.com/boostorg/property_tree/blob/develop/doc/xml_parser.qbk ] */
const FileBytecode assistantParseQuestion(const FilePath &filepath = "index.xhtml"); /* TODO: regex or XML parser */
const std::vector<FileBytecode> assistantParseResponses(const FilePath &filepath = "index.xhtml"); /* TODO: regex or XML parser */
@SwuduSusuwu SwuduSusuwu added improve New feature or request good first issue Good for newcomers labels Jun 16, 2024
@SwuduSusuwu SwuduSusuwu changed the title cxx/ConversationCns.hxx has unfinished functions (to produce+process databases of resources.) Do this as cxx/ClassCns.hxx or (new) cxx/ClassDatabases.hxx cxx/AssistantCns.hxx has unfinished formulas (to produce+process databases of resources.) Do this as cxx/ClassCns.hxx or (new) cxx/ClassDatabases.hxx Jun 22, 2024
@SwuduSusuwu
Copy link
Owner Author

?questionsResponsesFromXhtml() "shadows outer" fix@6596f60 is an insignificant update, but has to do with this

@SwuduSusuwu SwuduSusuwu added the todo unimplemented (but advertised) part of the tool label Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers improve New feature or request todo unimplemented (but advertised) part of the tool
Projects
None yet
Development

No branches or pull requests

1 participant