GithubHelp home page GithubHelp logo

[Question] does content.url in filename for websites make sense? (I want attribution per paragraph via separate prompt) about kernel-memory HOT 4 CLOSED

chaelli avatar chaelli commented on June 23, 2024
[Question] does content.url in filename for websites make sense? (I want attribution per paragraph via separate prompt)

from kernel-memory.

Comments (4)

chaelli avatar chaelli commented on June 23, 2024 1

This only works if there is just 1 relevant source - if there are multiple, I would not know which part of the answer is based on what page. If there are multiple sources, they are all called content.url and I cannot align separate sources to separate paragraphs.
fyi until I started using kernel memory, I just used a prompt like this:

Add a source reference to the end of each sentence. e.g. Apple is a fruit ([Reference page title](Reference page url)) (markdown link formatting). ...

from kernel-memory.

dluc avatar dluc commented on June 23, 2024

You should be able to swap content.url with the URL upon receiving the response, there is a property with the URL

from kernel-memory.

chaelli avatar chaelli commented on June 23, 2024

@dluc Do you have any preference between the options:

  • replace "content.url" during indexing with the real url value?
  • additing the url as an additional value in the prompt?

Or none of them?

from kernel-memory.

dluc avatar dluc commented on June 23, 2024

@dluc Do you have any preference between the options:

* replace "content.url" during indexing with the real url value?

* additing the url as an additional value in the prompt?

Or none of them?

I would try the approach with the prompt, it should be easier. Changing the indexing pipeline might have unexpected impact

from kernel-memory.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.