mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-04 20:28:10 +00:00
docs: Big Mendable Improvements (#4964)
- Higher accuracy on the responses - New redesigned UI - Pretty Sources: display the sources by title / sub-section instead of long URL. - Fixed Reset Button bugs and some other UI issues - Other tweaks
This commit is contained in:
parent
2ab0e1d526
commit
02632d52b3
2
docs/_static/css/custom.css
vendored
2
docs/_static/css/custom.css
vendored
@ -13,5 +13,5 @@ pre {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#my-component-root *, #headlessui-portal-root * {
|
#my-component-root *, #headlessui-portal-root * {
|
||||||
z-index: 1000000000000;
|
z-index: 10000;
|
||||||
}
|
}
|
||||||
|
6
docs/_static/js/mendablesearch.js
vendored
6
docs/_static/js/mendablesearch.js
vendored
@ -31,9 +31,6 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||||||
style: { color: '#ffffff', fontSize: '22px',width: '48px', height: '48px', margin: '0px', padding: '0px', display: 'flex', alignItems: 'center', justifyContent: 'center', textAlign: 'center' },
|
style: { color: '#ffffff', fontSize: '22px',width: '48px', height: '48px', margin: '0px', padding: '0px', display: 'flex', alignItems: 'center', justifyContent: 'center', textAlign: 'center' },
|
||||||
}, [iconSpan1, iconSpan2]);
|
}, [iconSpan1, iconSpan2]);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const mendableFloatingButton = React.createElement(
|
const mendableFloatingButton = React.createElement(
|
||||||
MendableFloatingButton,
|
MendableFloatingButton,
|
||||||
{
|
{
|
||||||
@ -42,6 +39,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||||||
anon_key: '82842b36-3ea6-49b2-9fb8-52cfc4bde6bf', // Mendable Search Public ANON key, ok to be public
|
anon_key: '82842b36-3ea6-49b2-9fb8-52cfc4bde6bf', // Mendable Search Public ANON key, ok to be public
|
||||||
messageSettings: {
|
messageSettings: {
|
||||||
openSourcesInNewTab: false,
|
openSourcesInNewTab: false,
|
||||||
|
prettySources: true // Prettify the sources displayed now
|
||||||
},
|
},
|
||||||
icon: icon,
|
icon: icon,
|
||||||
}
|
}
|
||||||
@ -52,7 +50,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||||||
|
|
||||||
loadScript('https://unpkg.com/react@17/umd/react.production.min.js', () => {
|
loadScript('https://unpkg.com/react@17/umd/react.production.min.js', () => {
|
||||||
loadScript('https://unpkg.com/react-dom@17/umd/react-dom.production.min.js', () => {
|
loadScript('https://unpkg.com/react-dom@17/umd/react-dom.production.min.js', () => {
|
||||||
loadScript('https://unpkg.com/@mendable/search@0.0.93/dist/umd/mendable.min.js', initializeMendable);
|
loadScript('https://unpkg.com/@mendable/search@0.0.102/dist/umd/mendable.min.js', initializeMendable);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user