[PR #85] [CLOSED] Feature: Get topic suggestions for new links #27

Closed
opened 2025-12-29 18:27:51 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/linsa-io/linsa/pull/85
Author: @wilmeragsgh
Created: 11/15/2023
Status: Closed

Base: devHead: feature/url-topic-suggestions


📝 Commits (5)

  • ca389c1 feat: Add capturing of title+description for url-topics-suggestion
  • 1c728d7 feat: Add qdrant access instead of vectorize and add grabase ai
  • 0b9cdf8 feat[la-27]: Add init code for engine to get llama2 answers for a given global topic
  • 7ad0009 chore: Remove debug console.logs
  • a0fa897 Merge branch 'dev' into feature/url-topic-suggestions

📊 Changes

5 files changed (+114 additions, -0 deletions)

View changed files

📝 grafbase/generated/index.ts (+2 -0)
📝 grafbase/grafbase.config.ts (+13 -0)
grafbase/resolvers/getGlobalTopicAnswer.ts (+30 -0)
grafbase/resolvers/getSuggestionsForUrl.ts (+68 -0)
📝 package.json (+1 -0)

📄 Description

This PR adds:

Changes

Grafbase resolver to get topic suggestions on a new link

Using a new link web page description from its meta tags we create an embedding for the link using the baai/bge-large-en-v1.5 model and search in a Qdrant instance to get the most similar GlobalTopic to the new link and suggest it.

Grafbase resolver to get single questions answers from a global topic

Passing the topic name and question as arguments to it, we use meta/llama-2-7b-chat-int8 to set a prompt where the model is an expert on the given topic and answers questions on the said topic. The current setup only considers single questions answers, meaning it would not handle multi-step interactions yet.

Limitations

The current setup only works on the web app as Grafbase ai workers integration does not work locally yet.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/linsa-io/linsa/pull/85 **Author:** [@wilmeragsgh](https://github.com/wilmeragsgh) **Created:** 11/15/2023 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `feature/url-topic-suggestions` --- ### 📝 Commits (5) - [`ca389c1`](https://github.com/linsa-io/linsa/commit/ca389c17e678de46ba883b9c3bcd7b737c471ad0) feat: Add capturing of title+description for url-topics-suggestion - [`1c728d7`](https://github.com/linsa-io/linsa/commit/1c728d7a16bdda36e07d47b431aee3142a35de57) feat: Add qdrant access instead of vectorize and add grabase ai - [`0b9cdf8`](https://github.com/linsa-io/linsa/commit/0b9cdf8968f988357f9b8ed66ea0f72288a233d9) feat[la-27]: Add init code for engine to get llama2 answers for a given global topic - [`7ad0009`](https://github.com/linsa-io/linsa/commit/7ad0009a4015a40bbc4f51b5f350679549c05b21) chore: Remove debug console.logs - [`a0fa897`](https://github.com/linsa-io/linsa/commit/a0fa8970ca9b533b752d68c8fde61f9e6c1d9dc8) Merge branch 'dev' into feature/url-topic-suggestions ### 📊 Changes **5 files changed** (+114 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `grafbase/generated/index.ts` (+2 -0) 📝 `grafbase/grafbase.config.ts` (+13 -0) ➕ `grafbase/resolvers/getGlobalTopicAnswer.ts` (+30 -0) ➕ `grafbase/resolvers/getSuggestionsForUrl.ts` (+68 -0) 📝 `package.json` (+1 -0) </details> ### 📄 Description This PR adds: ## Changes **Grafbase resolver to get topic suggestions on a new link** Using a new link web page description from its meta tags we create an embedding for the link using the `baai/bge-large-en-v1.5` model and search in a Qdrant instance to get the most similar _GlobalTopic_ to the new link and suggest it. **Grafbase resolver to get single questions answers from a global topic** Passing the topic name and question as arguments to it, we use `meta/llama-2-7b-chat-int8` to set a prompt where the model is an expert on the given topic and answers questions on the said topic. The current setup only considers single questions answers, meaning it would not handle multi-step interactions yet. ## Limitations The current setup only works on the web app as Grafbase ai workers integration does not work locally yet. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 18:27:51 +01:00
adam closed this issue 2025-12-29 18:27:51 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/linsa#27